postgresql/src
Alexander Korotkov 12915a58ee Enhance checkpointer restartpoint statistics
Bhis commit introduces enhancements to the pg_stat_checkpointer view by adding
three new columns: restartpoints_timed, restartpoints_req, and
restartpoints_done. These additions aim to improve the visibility and
monitoring of restartpoint processes on replicas.

Previously, it was challenging to differentiate between successful and failed
restartpoint requests. This limitation arises because restartpoints on replicas
are dependent on checkpoint records from the primary, and cannot occur more
frequently than these checkpoints.

The new columns allow for clear distinction and tracking of restartpoint
requests, their triggers, and successful completions.  This enhancement aids
database administrators and developers in better understanding and diagnosing
issues related to restartpoint behavior, particularly in scenarios where
restartpoint requests may fail.

System catalog is changed.  Catversion is bumped.

Discussion: https://postgr.es/m/99b2ccd1-a77a-962a-0837-191cdf56c2b9%40inbox.ru
Author: Anton A. Melnikov
Reviewed-by: Kyotaro Horiguchi, Alexander Korotkov
2023-12-25 01:12:36 +02:00
..
backend Enhance checkpointer restartpoint statistics 2023-12-25 01:12:36 +02:00
bin pgbench: Fix overflow in table populating when rows >= 2^31-1 2023-12-24 11:49:14 +09:00
common Fix numerous typos in incremental backup commits. 2023-12-21 15:36:17 -05:00
fe_utils Remove unneeded assignments in for loop header 2023-11-21 16:10:27 +01:00
include Enhance checkpointer restartpoint statistics 2023-12-25 01:12:36 +02:00
interfaces Remove MSVC scripts 2023-12-20 09:44:37 +09:00
makefiles Remove distprep 2023-11-06 15:18:04 +01:00
pl Stop generating plain-text INSTALL instructions. 2023-12-22 13:32:15 -05:00
port Remove MSVC scripts 2023-12-20 09:44:37 +09:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Enhance checkpointer restartpoint statistics 2023-12-25 01:12:36 +02:00
timezone Remove distprep 2023-11-06 15:18:04 +01:00
tools Stop generating plain-text INSTALL instructions. 2023-12-22 13:32:15 -05:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Initialize data directories with --lc-messages=C for tests. 2023-12-21 15:10:13 -08:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00