pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Send statistics collected during shutdown checkpoint to the stat
Date: Fri, 12 Mar 2021 05:24:01 +0000
Message-ID: <E1lKaHJ-0000SD-GO@gemulon.postgresql.org> (raw)

Send statistics collected during shutdown checkpoint to the stats collector.

When shutdown is requested, checkpointer performs checkpoint or
restartpoint, and updates the statistics, before it exits. But previously
checkpointer didn't send those statistics to the stats collector.

Shutdown checkpoint and restartpoint are treated as requested ones
instead of scheduled ones, so the number of them are counted in
pg_stat_bgwriter.checkpoints_req column.

Author: Masahiro Ikeda
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/0509ad67b585a5b86a83d445dfa75392@oss.nttdata.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b82640df0062483431608b7e9e074255f03e6c02

Modified Files
--------------
src/backend/postmaster/checkpointer.c | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)



Message-ID: <E1lKaHJ-0000SD-GO@gemulon.postgresql.org>
Permalink:  ../E1lKaHJ-0000SD-GO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lKaHJ-0000SD-GO@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 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: Send statistics collected during shutdown checkpoint to the stat
  In-Reply-To: <E1lKaHJ-0000SD-GO@gemulon.postgresql.org>
  References: <E1lKaHJ-0000SD-GO@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