Summary
The pg_stat_archiver view will always have a single row, containing data about the archiver process of the cluster.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_stat_archiver statistics view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
archived_countbigint
Number of WAL files that have been successfully archivedlast_archived_waltext
Name of the WAL file most recently successfully archivedlast_archived_timetimestamp with time zone
Time of the most recent successful archive operationfailed_countbigint
Number of failed attempts for archiving WAL fileslast_failed_waltext
Name of the WAL file of the most recent failed archival operationlast_failed_timetimestamp with time zone
Time of the most recent failed archival operationstats_resettimestamp with time zone
Time at which these statistics were last reset
Version applicability
Present in PostgreSQL 17, 18, 19 (verified against each release’s documentation). This is a long-standing system object that also exists in earlier PostgreSQL releases.
Related & references
Reference: PostgreSQL documentation — pg_stat_archiver.