mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Track total number of WAL records, FPIs and bytes generated in the cluster.
Commit 6b466bf5f2
allowed pg_stat_statements to track the number of
WAL records, full page images and bytes that each statement generated.
Similarly this commit allows us to track the cluster-wide WAL statistics
counters.
New columns wal_records, wal_fpi and wal_bytes are added into the
pg_stat_wal view, and reports the total number of WAL records,
full page images and bytes generated in the , respectively.
Author: Masahiro Ikeda
Reviewed-by: Amit Kapila, Movead Li, Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/35ef960128b90bfae3b3fdf60a3a860f@oss.nttdata.com
This commit is contained in:
@ -3447,6 +3447,33 @@ SELECT pid, wait_event_type, wait_event FROM pg_stat_activity WHERE wait_event i
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>wal_records</structfield> <type>bigint</type>
|
||||
</para>
|
||||
<para>
|
||||
Total number of WAL records generated
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>wal_fpi</structfield> <type>bigint</type>
|
||||
</para>
|
||||
<para>
|
||||
Total number of WAL full page images generated
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>wal_bytes</structfield> <type>numeric</type>
|
||||
</para>
|
||||
<para>
|
||||
Total amount of WAL bytes generated
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>wal_buffers_full</structfield> <type>bigint</type>
|
||||
|
Reference in New Issue
Block a user