From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Track total number of WAL records, FPIs and bytes generated in t
Date: Wed, 02 Dec 2020 04:04:57 +0000
Message-ID: <E1kkJNx-0007Zf-QU@gemulon.postgresql.org> (raw)
Track total number of WAL records, FPIs and bytes generated in the cluster.
Commit 6b466bf5f2 allowed pg_stat_statements to track the number of
WAL records, full page images and bytes that each statement generated.
Similarly this commit allows us to track the cluster-wide WAL statistics
counters.
New columns wal_records, wal_fpi and wal_bytes are added into the
pg_stat_wal view, and reports the total number of WAL records,
full page images and bytes generated in the , respectively.
Author: Masahiro Ikeda
Reviewed-by: Amit Kapila, Movead Li, Kyotaro Horiguchi, Fujii Masao
Discussion: https://postgr.es/m/35ef960128b90bfae3b3fdf60a3a860f@oss.nttdata.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/01469241b2ff6f17fc0b3f20f01559145ffab29e
Modified Files
--------------
doc/src/sgml/monitoring.sgml | 27 +++++++++++++++++++++++++
src/backend/catalog/system_views.sql | 3 +++
src/backend/postmaster/pgstat.c | 38 ++++++++++++++++++++++++++++++++++++
src/backend/utils/adt/pgstatfuncs.c | 27 ++++++++++++++++++++-----
src/include/catalog/pg_proc.dat | 5 +++--
src/include/pgstat.h | 6 ++++++
src/test/regress/expected/rules.out | 7 +++++--
7 files changed, 104 insertions(+), 9 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: fujii@postgresql.org
Subject: Re: pgsql: Track total number of WAL records, FPIs and bytes generated in t
In-Reply-To: <E1kkJNx-0007Zf-QU@gemulon.postgresql.org>
References: <E1kkJNx-0007Zf-QU@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