From: | Fujii Masao <fujii(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Send statistics collected during shutdown checkpoint to the stat |
Date: | 2021-03-12 05:24:01 |
Message-ID: | E1lKaHJ-0000SD-GO@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2021-03-12 06:55:21 | pgsql: Poll postmaster less frequently in recovery. |
Previous Message | Fujii Masao | 2021-03-12 04:30:45 | pgsql: Force to send remaining WAL stats to the stats collector at walw |