postgresql/src/backend/postmaster
Fujii Masao b82640df00 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
2021-03-12 14:23:00 +09:00
..
autovacuum.c Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
bgworker.c Use SIGURG rather than SIGUSR1 for latches. 2021-03-01 12:44:12 +13:00
bgwriter.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
checkpointer.c Send statistics collected during shutdown checkpoint to the stats collector. 2021-03-12 14:23:00 +09:00
fork_process.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
interrupt.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Partially deduplicate interrupt handling for background processes. 2019-12-17 13:14:28 -05:00
pgarch.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
pgstat.c Replace buffer I/O locks with condition variables. 2021-03-11 10:36:17 +13:00
postmaster.c Remove server and libpq support for old FE/BE protocol version 2. 2021-03-04 10:45:55 +02:00
startup.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
syslogger.c Use errmsg_internal for debug messages 2021-02-17 11:33:25 +01:00
walwriter.c Force to send remaining WAL stats to the stats collector at walwriter exit. 2021-03-12 13:29:59 +09:00