Add some checkpoint/restartpoint status to ps display
authorMichael Paquier <michael@paquier.xyz>
Mon, 14 Dec 2020 02:53:58 +0000 (11:53 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 14 Dec 2020 02:53:58 +0000 (11:53 +0900)
commitdf9274adf3096feafbbde2562311c8ab80405267
tree4a6f9e0b0daec688ff5624c75a46f88ad45d4f69
parenta1b8aa1e4eec520ed8f11c3d134a7a866358d39a
Add some checkpoint/restartpoint status to ps display

This is done for end-of-recovery and shutdown checkpoints/restartpoints
(end-of-recovery restartpoints don't exist) rather than all types of
checkpoints, in cases where it may not be possible to rely on
pg_stat_activity to get a status from the startup or checkpointer
processes.

For example, at the end of a crash recovery, this is useful to know if a
checkpoint is running in the startup process, while previously the ps
display may only show some information about "recovering" something,
that can be confusing while a checkpoint runs.

Author: Justin Pryzby
Reviewed-by: Nathan Bossart, Kirk Jamison, Fujii Masao, Michael Paquier
Discussion: https://postgr.es/m/20200818225238.GP17022@telsasoft.com
src/backend/access/transam/xlog.c