Remove buffers_backend and buffers_backend_fsync from pg_stat_checkpointer
Michael Paquier <michael@paquier.xyz>
Remove buffers_backend and buffers_backend_fsync from pg_stat_checkpointer Two attributes related to checkpointer statistics are removed in this commit: - buffers_backend, that counts the number of buffers written directly by a backend. - buffers_backend_fsync, that counts the number of times a backend had to do fsync() by its own. These are actually not checkpointer properties but backend properties. Also, pg_stat_io provides a more accurate and equivalent report of these numbers, by tracking all the I/O stats related to backends, including writes and fsyncs, so storing them in pg_stat_checkpointer was redundant. Thanks also to Robert Haas and Amit Kapila for their input. Bump catalog version. Author: Bharath Rupireddy Reviewed-by: Bertrand Drouvot, Andres Freund Discussion: https://postgr.es/m/20230210004604.mcszbscsqs3bc5nx@awork3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +0 −20 |
| src/backend/catalog/system_views.sql | modified | +0 −2 |
| src/backend/postmaster/checkpointer.c | modified | +2 −30 |
| src/backend/utils/activity/pgstat_checkpointer.c | modified | +0 −4 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +0 −12 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +0 −9 |
| src/include/pgstat.h | modified | +0 −2 |
| src/test/regress/expected/rules.out | modified | +0 −2 |
Documentation touched
Discussion
- Introduce a new view for checkpointer related stats 39 messages · 2022-11-17 → 2023-10-30