Skip to content

WAL archiver statistics#

What it does

Shows successful and failed write-ahead log archive operations.

$ pgcue run wal.archiver

Use when

  • WAL files are accumulating or archive-related alerts are firing.
  • Confirming whether archive commands continue to succeed.

Inspect

  • Recent failures and a last successful archive time that is unexpectedly old.
  • Counter changes relative to the statistics reset time.

Result

Cumulative statistics since PostgreSQL last reset the relevant counters.

Columns#

Column Meaning
archived_count WAL files successfully archived since statistics were reset.
failed_count Failed archive attempts since statistics were reset.
last_archived_time Time of the most recent successful archive.
last_archived_wal Name of the most recently archived WAL file.
last_failed_time Time of the most recent failed archive attempt.
last_failed_wal Name of the WAL file involved in the most recent failure.
stats_reset Time at which archiver statistics were last reset.

Compatibility#

  • PostgreSQL 14+