Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e820db5

Browse files
committed
Improve documentation for pg_stat_checkpointer fields
pg_stat_checkpointer contains statistics for checkpoints and restartpoints. Before 12915a5 documentation said only about checkpoints implying that restartpoint is the variation of checkpoint. 12915a5 introduced new separate statistics fields for restartpoints. This commit explicitly documents fields that are relevant for both checkpoints and restartpoints. Reported-by: Magnus Hagander Discussion: https://postgr.es/m/CABUevExav5-SR0x%2BG9kBUMV0G8XsvSUfuyyqmYBBJi6VHns6sw%40mail.gmail.com Reviewed-by: Anton A. Melnikov
1 parent ecb0fd3 commit e820db5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

doc/src/sgml/monitoring.sgml

+5-4
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,8 @@ description | Waiting for a newly initialized WAL file to reach durable storage
30163016
</para>
30173017
<para>
30183018
Total amount of time that has been spent in the portion of
3019-
checkpoint processing where files are written to disk, in milliseconds
3019+
processing checkpoints and restartpoints where files are written to disk,
3020+
in milliseconds
30203021
</para></entry>
30213022
</row>
30223023

@@ -3026,8 +3027,8 @@ description | Waiting for a newly initialized WAL file to reach durable storage
30263027
</para>
30273028
<para>
30283029
Total amount of time that has been spent in the portion of
3029-
checkpoint processing where files are synchronized to disk, in
3030-
milliseconds
3030+
processing checkpoints and restartpoints where files are synchronized to
3031+
disk, in milliseconds
30313032
</para></entry>
30323033
</row>
30333034

@@ -3036,7 +3037,7 @@ description | Waiting for a newly initialized WAL file to reach durable storage
30363037
<structfield>buffers_written</structfield> <type>bigint</type>
30373038
</para>
30383039
<para>
3039-
Number of buffers written during checkpoints
3040+
Number of buffers written during checkpoints and restartpoints
30403041
</para></entry>
30413042
</row>
30423043

src/include/catalog/pg_proc.dat

+3-3
Original file line numberDiff line numberDiff line change
@@ -5737,7 +5737,7 @@
57375737
proparallel => 'r', prorettype => 'int8', proargtypes => '',
57385738
prosrc => 'pg_stat_get_checkpointer_restartpoints_performed' },
57395739
{ oid => '2771',
5740-
descr => 'statistics: number of buffers written by the checkpointer',
5740+
descr => 'statistics: number of buffers written during checkpoints and restartpoints',
57415741
proname => 'pg_stat_get_checkpointer_buffers_written', provolatile => 's',
57425742
proparallel => 'r', prorettype => 'int8', proargtypes => '',
57435743
prosrc => 'pg_stat_get_checkpointer_buffers_written' },
@@ -5760,12 +5760,12 @@
57605760
proparallel => 'r', prorettype => 'timestamptz', proargtypes => '',
57615761
prosrc => 'pg_stat_get_bgwriter_stat_reset_time' },
57625762
{ oid => '3160',
5763-
descr => 'statistics: checkpoint time spent writing buffers to disk, in milliseconds',
5763+
descr => 'statistics: checkpoint/restartpoint time spent writing buffers to disk, in milliseconds',
57645764
proname => 'pg_stat_get_checkpointer_write_time', provolatile => 's',
57655765
proparallel => 'r', prorettype => 'float8', proargtypes => '',
57665766
prosrc => 'pg_stat_get_checkpointer_write_time' },
57675767
{ oid => '3161',
5768-
descr => 'statistics: checkpoint time spent synchronizing buffers to disk, in milliseconds',
5768+
descr => 'statistics: checkpoint/restartpoint time spent synchronizing buffers to disk, in milliseconds',
57695769
proname => 'pg_stat_get_checkpointer_sync_time', provolatile => 's',
57705770
proparallel => 'r', prorettype => 'float8', proargtypes => '',
57715771
prosrc => 'pg_stat_get_checkpointer_sync_time' },

0 commit comments

Comments
 (0)