diff options
author | Fujii Masao | 2024-10-02 02:17:47 +0000 |
---|---|---|
committer | Fujii Masao | 2024-10-02 02:17:47 +0000 |
commit | 17cc5f666f6aada21eb3237974c50681ba4814ea (patch) | |
tree | a8d3fad9a3262e2b9d7d82fae23a78cddc1cadde /doc/src | |
parent | 506eede7111ae7c88bd3c21f653bbb65846bd4a5 (diff) |
Fix inconsistent reporting of checkpointer stats.
Previously, the pg_stat_checkpointer view and the checkpoint completion
log message could show different numbers for buffers written
during checkpoints. The view only counted shared buffers,
while the log message included both shared and SLRU buffers,
causing inconsistencies.
This commit resolves the issue by updating both the view and the log message
to separately report shared and SLRU buffers written during checkpoints.
A new slru_written column is added to the pg_stat_checkpointer view
to track SLRU buffers, while the existing buffers_written column now
tracks only shared buffers. This change would help users distinguish
between the two types of buffers, in the pg_stat_checkpointer view and
the checkpoint complete log message, respectively.
Bump catalog version.
Author: Nitin Jadhav
Reviewed-by: Bharath Rupireddy, Michael Paquier, Kyotaro Horiguchi, Robert Haas
Reviewed-by: Andres Freund, vignesh C, Fujii Masao
Discussion: https://postgr.es/m/CAMm1aWb18EpT0whJrjG+-nyhNouXET6ZUw0pNYYAe+NezpvsAA@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 48ffe87241c..331315f8d3c 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -3127,7 +3127,16 @@ description | Waiting for a newly initialized WAL file to reach durable storage <structfield>buffers_written</structfield> <type>bigint</type> </para> <para> - Number of buffers written during checkpoints and restartpoints + Number of shared buffers written during checkpoints and restartpoints + </para></entry> + </row> + + <row> + <entry role="catalog_table_entry"><para role="column_definition"> + <structfield>slru_written</structfield> <type>bigint</type> + </para> + <para> + Number of SLRU buffers written during checkpoints and restartpoints </para></entry> </row> |