Skip to content

Commit a19f83f

Browse files
committed
docs: Enhance the pg_stat_checkpointer view documentation.
This commit updates the documentation for the pg_stat_checkpointer view to clarify what kind of checkpoints or restartpoints each counter tracks. This makes it easier to understand the meaning of each counter. Previously, the num_requested description included "backend," which could be misleading since requests come from other sources as well. This commit also removes "backend" from the description of num_requested, to avoid confusion. Author: Fujii Masao Reviewed-by: Anton A. Melnikov Discussion: https://postgr.es/m/4640258e-d959-4cf0-903c-cd02389c3e05@oss.nttdata.com
1 parent 04c64e3 commit a19f83f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

doc/src/sgml/monitoring.sgml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,10 +3051,7 @@ description | Waiting for a newly initialized WAL file to reach durable storage
30513051
<structfield>num_timed</structfield> <type>bigint</type>
30523052
</para>
30533053
<para>
3054-
Number of scheduled checkpoints due to timeout.
3055-
Note that checkpoints may be skipped if the server has been idle
3056-
since the last one, and this value counts both completed and
3057-
skipped checkpoints
3054+
Number of scheduled checkpoints due to timeout
30583055
</para></entry>
30593056
</row>
30603057

@@ -3063,7 +3060,7 @@ description | Waiting for a newly initialized WAL file to reach durable storage
30633060
<structfield>num_requested</structfield> <type>bigint</type>
30643061
</para>
30653062
<para>
3066-
Number of backend requested checkpoints
3063+
Number of requested checkpoints
30673064
</para></entry>
30683065
</row>
30693066

@@ -3146,6 +3143,18 @@ description | Waiting for a newly initialized WAL file to reach durable storage
31463143
</tgroup>
31473144
</table>
31483145

3146+
<para>
3147+
Checkpoints may be skipped if the server has been idle since the last one.
3148+
<structfield>num_timed</structfield> and
3149+
<structfield>num_requested</structfield> count both completed and skipped
3150+
checkpoints, while <structfield>num_done</structfield> tracks only
3151+
the completed ones. Similarly, restartpoints may be skipped
3152+
if the last replayed checkpoint record is already the last restartpoint.
3153+
<structfield>restartpoints_timed</structfield> and
3154+
<structfield>restartpoints_req</structfield> count both completed and
3155+
skipped restartpoints, while <structfield>restartpoints_done</structfield>
3156+
tracks only the completed ones.
3157+
</para>
31493158
</sect2>
31503159

31513160
<sect2 id="monitoring-pg-stat-wal-view">

0 commit comments

Comments
 (0)