aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2020-10-02 10:17:11 +0900
committerFujii Masao <fujii@postgresql.org>2020-10-02 10:17:11 +0900
commit8d9a935965f01b7759a8c23ff6291000b670a2bf (patch)
tree087be8ff79f83042fe0c84771c7987bb389a25bf /src/tools
parent9d0bd95fa90a7243047a74e29f265296a9fc556d (diff)
downloadpostgresql-8d9a935965f01b7759a8c23ff6291000b670a2bf.tar.gz
postgresql-8d9a935965f01b7759a8c23ff6291000b670a2bf.zip
Add pg_stat_wal statistics view.
This view shows the statistics about WAL activity. Currently it has only two columns: wal_buffers_full and stats_reset. wal_buffers_full column indicates the number of times WAL data was written to the disk because WAL buffers got full. This information is useful when tuning wal_buffers. stats_reset column indicates the time at which these statistics were last reset. pg_stat_wal view is also the basic infrastructure to expose other various statistics about WAL activity later. Bump PGSTAT_FILE_FORMAT_ID due to the change in pgstat format. Bump catalog version. Author: Masahiro Ikeda Reviewed-by: Takayuki Tsunakawa, Kyotaro Horiguchi, Amit Kapila, Fujii Masao Discussion: https://postgr.es/m/188bd3f2d2233cf97753b5ced02bb050@oss.nttdata.com
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/pgindent/typedefs.list2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/pgindent/typedefs.list b/src/tools/pgindent/typedefs.list
index 9cd1179af63..4191f948696 100644
--- a/src/tools/pgindent/typedefs.list
+++ b/src/tools/pgindent/typedefs.list
@@ -1841,6 +1841,7 @@ PgStat_MsgTabpurge
PgStat_MsgTabstat
PgStat_MsgTempFile
PgStat_MsgVacuum
+PgStat_MsgWal
PgStat_SLRUStats
PgStat_Shared_Reset_Target
PgStat_Single_Reset_Type
@@ -1852,6 +1853,7 @@ PgStat_TableCounts
PgStat_TableEntry
PgStat_TableStatus
PgStat_TableXactStatus
+PgStat_WalStats
PgXmlErrorContext
PgXmlStrictness
Pg_finfo_record