pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Track block level checksum failures in pg_stat_database
Date: Sat, 09 Mar 2019 18:48:11 +0000
Message-ID: <E1h2h11-0005j3-AE@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/6b9e875f7286d8535bff7955e5aa3602e188e436

Modified Files
--------------
doc/src/sgml/monitoring.sgml         |  5 ++++
src/backend/catalog/system_views.sql |  1 +
src/backend/postmaster/pgstat.c      | 56 ++++++++++++++++++++++++++++++++++++
src/backend/replication/basebackup.c | 16 +++++++----
src/backend/storage/page/bufpage.c   |  3 ++
src/backend/utils/adt/pgstatfuncs.c  | 15 ++++++++++
src/include/catalog/catversion.h     |  2 +-
src/include/catalog/pg_proc.dat      |  4 +++
src/include/pgstat.h                 | 18 +++++++++++-
src/test/regress/expected/rules.out  |  1 +
10 files changed, 114 insertions(+), 7 deletions(-)



view thread (10+ messages)  latest in thread

Message-ID: <E1h2h11-0005j3-AE@gemulon.postgresql.org>
Permalink:  ../E1h2h11-0005j3-AE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h2h11-0005j3-AE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: magnus@hagander.net, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Track block level checksum failures in pg_stat_database
  In-Reply-To: <E1h2h11-0005j3-AE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox