Track total number of WAL records, FPIs and bytes generated in the cluster.
Fujii Masao <fujii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +27 −0 |
| src/backend/catalog/system_views.sql | modified | +3 −0 |
| src/backend/postmaster/pgstat.c | modified | +38 −0 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +22 −5 |
| src/include/catalog/pg_proc.dat | modified | +3 −2 |
| src/include/pgstat.h | modified | +6 −0 |
| src/test/regress/expected/rules.out | modified | +5 −2 |
Documentation touched
Discussion
- Add statistics to pg_stat_wal view for wal related parameter tuning 33 messages · 2020-10-20 → 2021-01-20