postgresql_16:4.13.2.15 pg_stat_wal
PostgreSQL 16 > Server Administration > Monitoring Database Activity > The Cumulative Statistics System > pg_stat_wal
The pg_stat_wal view will always have a single row, containing data about WAL activity of the cluster.
| Column Type Description | | --- | | wal_records bigint Total number of WAL records generated | | wal_fpi bigint Total number of WAL full page images generated | | wal_bytes numeric Total amount of WAL generated in bytes | | wal_buffers_full bigint Number of times WAL data was written to disk because WAL buffers became full | | wal_write bigint Number of times WAL buffers were written out to disk via XLogWrite request. See (see postgresql_16:4.15.5) for more information about the internal WAL function XLogWrite. | | wal_sync bigint Number of times WAL files were synced to disk via issue_xlog_fsync request (if (see guc-fsync) is on and (see guc-wal-sync-method) is either fdatasync, fsync or fsync_writethrough, otherwise zero). See (see postgresql_16:4.15.5) for more information about the internal WAL function issue_xlog_fsync. | | wal_write_time double precision Total amount of time spent writing WAL buffers to disk via XLogWrite request, in milliseconds (if (see guc-track-wal-io-timing) is enabled, otherwise zero). This includes the sync time when wal_sync_method is either open_datasync or open_sync. | | wal_sync_time double precision Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request, in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). | | stats_reset timestamp with time zone Time at which these statistics were last reset |