mirror of
https://github.com/postgres/postgres.git
synced 2025-12-09 02:08:45 +03:00
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
This commit is contained in:
@@ -1817,6 +1817,7 @@ pg_stat_database| SELECT d.oid AS datid,
|
||||
pg_stat_get_db_temp_files(d.oid) AS temp_files,
|
||||
pg_stat_get_db_temp_bytes(d.oid) AS temp_bytes,
|
||||
pg_stat_get_db_deadlocks(d.oid) AS deadlocks,
|
||||
pg_stat_get_db_checksum_failures(d.oid) AS checksum_failures,
|
||||
pg_stat_get_db_blk_read_time(d.oid) AS blk_read_time,
|
||||
pg_stat_get_db_blk_write_time(d.oid) AS blk_write_time,
|
||||
pg_stat_get_db_stat_reset_time(d.oid) AS stats_reset
|
||||
|
||||
Reference in New Issue
Block a user