Add num_done counter to the pg_stat_checkpointer view.

Fujii Masao <fujii@postgresql.org>

Commit: 559efce1d684069acf234a5cb032acba84e70938
Author: Fujii Masao <fujii@postgresql.org>
Date: 2024-09-30T02:56:05Z
Releases: 18.0
Add num_done counter to the pg_stat_checkpointer view.

Checkpoints can be skipped when the server is idle. The existing num_timed and
num_requested counters in pg_stat_checkpointer track both completed and
skipped checkpoints, but there was no way to count only the completed ones.

This commit introduces the num_done counter, which tracks only completed
checkpoints, making it easier to see how many were actually performed.

Bump catalog version.

Author: Anton A. Melnikov
Reviewed-by: Fujii Masao
Discussion: https://postgr.es/m/9ea77f40-818d-4841-9dee-158ac8f6e690@oss.nttdata.com

Files

Documentation touched

Discussion