From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Show shared object statistics in pg_stat_database
Date: Fri, 12 Apr 2019 12:13:29 +0000
Message-ID: <E1hEv3h-0006Yp-T9@gemulon.postgresql.org> (raw)
Show shared object statistics in pg_stat_database
This adds a row to the pg_stat_database view with datoid 0 and datname
NULL for those objects that are not in a database. This was added
particularly for checksums, but we were already tracking more satistics
for these objects, just not returning it.
Also add a checksum_last_failure column that holds the timestamptz of
the last checksum failure that occurred in a database (or in a
non-dataabase file), if any.
Author: Julien Rouhaud <rjuju123@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/77bd49adba4711b4497e7e39a5ec3a9812cbd52a
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 26 ++++++++++++++++++--------
doc/src/sgml/ref/initdb.sgml | 4 +++-
doc/src/sgml/ref/pg_basebackup.sgml | 3 ++-
src/backend/catalog/system_views.sql | 12 ++++++++++--
src/backend/postmaster/pgstat.c | 6 +++++-
src/backend/replication/basebackup.c | 4 ++--
src/backend/utils/adt/pgstatfuncs.c | 18 ++++++++++++++++++
src/include/catalog/pg_proc.dat | 5 +++++
src/include/pgstat.h | 2 ++
src/test/regress/expected/rules.out | 13 +++++++++++--
10 files changed, 76 insertions(+), 17 deletions(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: magnus@hagander.net
Subject: Re: pgsql: Show shared object statistics in pg_stat_database
In-Reply-To: <E1hEv3h-0006Yp-T9@gemulon.postgresql.org>
References: <E1hEv3h-0006Yp-T9@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