From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgstat: split reporting/fetching of bgwriter and checkpointer st
Date: Thu, 05 Aug 2021 02:18:04 +0000
Message-ID: <E1mBSxQ-00010W-ND@gemulon.postgresql.org> (raw)
pgstat: split reporting/fetching of bgwriter and checkpointer stats.
These have been unrelated since bgwriter and checkpointer were split into two
processes in 806a2aee379. As there several pending patches (shared memory
stats, extending the set of tracked IO / buffer statistics) that are made a
bit more awkward by the grouping, split them. Done separately to make
reviewing easier.
This does *not* change the contents of pg_stat_bgwriter or move fields out of
bgwriter/checkpointer stats that arguably do not belong in either. However
pgstat_fetch_global() was renamed and split into
pgstat_fetch_stat_checkpointer() and pgstat_fetch_stat_bgwriter().
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/20210405092914.mmxqe7j56lsjfsej@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1bc8e7b0991c1eae5fa6dc2d29bb2280efb52740
Modified Files
--------------
src/backend/access/transam/xlog.c | 4 +-
src/backend/postmaster/checkpointer.c | 26 ++++---
src/backend/postmaster/pgstat.c | 124 ++++++++++++++++++++++++++++------
src/backend/storage/buffer/bufmgr.c | 8 +--
src/backend/utils/adt/pgstatfuncs.c | 27 ++++----
src/include/pgstat.h | 63 +++++++++++++----
6 files changed, 185 insertions(+), 67 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: andres@anarazel.de
Subject: Re: pgsql: pgstat: split reporting/fetching of bgwriter and checkpointer st
In-Reply-To: <E1mBSxQ-00010W-ND@gemulon.postgresql.org>
References: <E1mBSxQ-00010W-ND@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