@@ -451,6 +451,15 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
451451 </entry>
452452 </row>
453453
454+ <row>
455+ <entry><structname>pg_stat_checkpointer</structname><indexterm><primary>pg_stat_checkpointer</primary></indexterm></entry>
456+ <entry>One row only, showing statistics about the
457+ checkpointer process's activity. See
458+ <link linkend="monitoring-pg-stat-checkpointer-view">
459+ <structname>pg_stat_checkpointer</structname></link> for details.
460+ </entry>
461+ </row>
462+
454463 <row>
455464 <entry><structname>pg_stat_database</structname><indexterm><primary>pg_stat_database</primary></indexterm></entry>
456465 <entry>One row per database, showing database-wide statistics. See
@@ -2868,7 +2877,7 @@ description | Waiting for a newly initialized WAL file to reach durable storage
28682877
28692878 <para>
28702879 The <structname>pg_stat_bgwriter</structname> view will always have a
2871- single row, containing global data for the cluster.
2880+ single row, containing data about the background writer of the cluster.
28722881 </para>
28732882
28742883 <table id="pg-stat-bgwriter-view" xreflabel="pg_stat_bgwriter">
@@ -2888,77 +2897,118 @@ description | Waiting for a newly initialized WAL file to reach durable storage
28882897 <tbody>
28892898 <row>
28902899 <entry role="catalog_table_entry"><para role="column_definition">
2891- <structfield>checkpoints_timed </structfield> <type>bigint</type>
2900+ <structfield>buffers_clean </structfield> <type>bigint</type>
28922901 </para>
28932902 <para>
2894- Number of scheduled checkpoints that have been performed
2903+ Number of buffers written by the background writer
28952904 </para></entry>
28962905 </row>
28972906
28982907 <row>
28992908 <entry role="catalog_table_entry"><para role="column_definition">
2900- <structfield>checkpoints_req </structfield> <type>bigint</type>
2909+ <structfield>maxwritten_clean </structfield> <type>bigint</type>
29012910 </para>
29022911 <para>
2903- Number of requested checkpoints that have been performed
2912+ Number of times the background writer stopped a cleaning
2913+ scan because it had written too many buffers
29042914 </para></entry>
29052915 </row>
29062916
29072917 <row>
29082918 <entry role="catalog_table_entry"><para role="column_definition">
2909- <structfield>checkpoint_write_time </structfield> <type>double precision </type>
2919+ <structfield>buffers_alloc </structfield> <type>bigint </type>
29102920 </para>
29112921 <para>
2912- Total amount of time that has been spent in the portion of
2913- checkpoint processing where files are written to disk, in milliseconds
2922+ Number of buffers allocated
29142923 </para></entry>
29152924 </row>
29162925
29172926 <row>
29182927 <entry role="catalog_table_entry"><para role="column_definition">
2919- <structfield>checkpoint_sync_time </structfield> <type>double precision </type>
2928+ <structfield>stats_reset </structfield> <type>timestamp with time zone </type>
29202929 </para>
29212930 <para>
2922- Total amount of time that has been spent in the portion of
2923- checkpoint processing where files are synchronized to disk, in
2924- milliseconds
2931+ Time at which these statistics were last reset
29252932 </para></entry>
29262933 </row>
2934+ </tbody>
2935+ </tgroup>
2936+ </table>
2937+
2938+ </sect2>
2939+
2940+ <sect2 id="monitoring-pg-stat-checkpointer-view">
2941+ <title><structname>pg_stat_checkpointer</structname></title>
29272942
2943+ <indexterm>
2944+ <primary>pg_stat_checkpointer</primary>
2945+ </indexterm>
2946+
2947+ <para>
2948+ The <structname>pg_stat_checkpointer</structname> view will always have a
2949+ single row, containing data about the checkpointer process of the cluster.
2950+ </para>
2951+
2952+ <table id="pg-stat-checkpointer-view" xreflabel="pg_stat_checkpointer">
2953+ <title><structname>pg_stat_checkpointer</structname> View</title>
2954+ <tgroup cols="1">
2955+ <thead>
29282956 <row>
29292957 <entry role="catalog_table_entry"><para role="column_definition">
2930- <structfield>buffers_checkpoint</structfield> <type>bigint</type>
2958+ Column Type
29312959 </para>
29322960 <para>
2933- Number of buffers written during checkpoints
2961+ Description
29342962 </para></entry>
29352963 </row>
2964+ </thead>
29362965
2966+ <tbody>
29372967 <row>
29382968 <entry role="catalog_table_entry"><para role="column_definition">
2939- <structfield>buffers_clean </structfield> <type>bigint</type>
2969+ <structfield>num_timed </structfield> <type>bigint</type>
29402970 </para>
29412971 <para>
2942- Number of buffers written by the background writer
2972+ Number of scheduled checkpoints that have been performed
29432973 </para></entry>
29442974 </row>
29452975
29462976 <row>
29472977 <entry role="catalog_table_entry"><para role="column_definition">
2948- <structfield>maxwritten_clean </structfield> <type>bigint</type>
2978+ <structfield>num_requested </structfield> <type>bigint</type>
29492979 </para>
29502980 <para>
2951- Number of times the background writer stopped a cleaning
2952- scan because it had written too many buffers
2981+ Number of requested checkpoints that have been performed
29532982 </para></entry>
29542983 </row>
29552984
29562985 <row>
29572986 <entry role="catalog_table_entry"><para role="column_definition">
2958- <structfield>buffers_alloc </structfield> <type>bigint </type>
2987+ <structfield>write_time </structfield> <type>double precision </type>
29592988 </para>
29602989 <para>
2961- Number of buffers allocated
2990+ Total amount of time that has been spent in the portion of
2991+ checkpoint processing where files are written to disk, in milliseconds
2992+ </para></entry>
2993+ </row>
2994+
2995+ <row>
2996+ <entry role="catalog_table_entry"><para role="column_definition">
2997+ <structfield>sync_time</structfield> <type>double precision</type>
2998+ </para>
2999+ <para>
3000+ Total amount of time that has been spent in the portion of
3001+ checkpoint processing where files are synchronized to disk, in
3002+ milliseconds
3003+ </para></entry>
3004+ </row>
3005+
3006+ <row>
3007+ <entry role="catalog_table_entry"><para role="column_definition">
3008+ <structfield>buffers_written</structfield> <type>bigint</type>
3009+ </para>
3010+ <para>
3011+ Number of buffers written during checkpoints
29623012 </para></entry>
29633013 </row>
29643014
@@ -4669,8 +4719,10 @@ description | Waiting for a newly initialized WAL file to reach durable storage
46694719 Resets some cluster-wide statistics counters to zero, depending on the
46704720 argument. The argument can be <literal>bgwriter</literal> to reset
46714721 all the counters shown in
4672- the <structname>pg_stat_bgwriter</structname>
4673- view, <literal>archiver</literal> to reset all the counters shown in
4722+ the <structname>pg_stat_bgwriter</structname> view,
4723+ <literal>checkpointer</literal> to reset all the counters shown in
4724+ the <structname>pg_stat_checkpointer</structname> view,
4725+ <literal>archiver</literal> to reset all the counters shown in
46744726 the <structname>pg_stat_archiver</structname> view,
46754727 <literal>io</literal> to reset all the counters shown in the
46764728 <structname>pg_stat_io</structname> view,
0 commit comments