Summary
The pg_stat_checkpointer view will always have a single row, containing data about the checkpointer process of the cluster.
(Description quoted from the official PostgreSQL documentation.)
Columns
The pg_stat_checkpointer statistics view exposes the following columns (names, types and descriptions are taken verbatim from the PostgreSQL documentation):
num_timedbigint
Number of scheduled checkpoints due to timeoutnum_requestedbigint
Number of requested checkpointsnum_donebigint
Number of checkpoints that have been performedrestartpoints_timedbigint
Number of scheduled restartpoints due to timeout or after a failed attempt to perform itrestartpoints_reqbigint
Number of requested restartpointsrestartpoints_donebigint
Number of restartpoints that have been performedwrite_timedouble precision
Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are written to disk, in millisecondssync_timedouble precision
Total amount of time that has been spent in the portion of processing checkpoints and restartpoints where files are synchronized to disk, in millisecondsbuffers_writtenbigint
Number of shared buffers written during checkpoints and restartpointsslru_writtenbigint
Number of SLRU buffers written during checkpoints and restartpointsstats_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_checkpointer.