gp_stat_archiver

The gp_stat_archiver view contains data about the WAL archiver process of the cluster. It displays one row per segment.

columntypereferencesdescription
archived_countbigintNumber of WAL files that have been successfully archived.
last_archived_waltextName of the last WAL file successfully archived.
last_archived_timetimestamp with time zoneTime of the last successful archive operation.
failed_countbigintNumber of failed attempts for archiving WAL files.
last_failed_waltextName of the WAL file of the last failed archival operation.
last_failed_timetimestamp with time zoneTime of the last failed archival operation.
stats_resettimestamp with time zoneTime at which these statistics were last reset.
gp_segment_idintThe id of the segment to which the data being archived belongs.

Note As this is not a pg_catalog view, you must run the following command to make this view available:

CREATE EXTENSION gp_pitr;