Track block level checksum failures in pg_stat_database
Magnus Hagander <magnus@hagander.net>
Track block level checksum failures in pg_stat_database This adds a column that counts how many checksum failures have occurred on files belonging to a specific database. Both checksum failures during normal backend processing and those created when a base backup detects a checksum failure are counted. Author: Magnus Hagander Reviewed by: Julien Rouhaud
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +5 −0 |
| src/backend/catalog/system_views.sql | modified | +1 −0 |
| src/backend/postmaster/pgstat.c | modified | +56 −0 |
| src/backend/replication/basebackup.c | modified | +11 −5 |
| src/backend/storage/page/bufpage.c | modified | +3 −0 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +15 −0 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_proc.dat | modified | +4 −0 |
| src/include/pgstat.h | modified | +17 −1 |
| src/test/regress/expected/rules.out | modified | +1 −0 |