@@ -451,6 +451,15 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser
451
451
</entry>
452
452
</row>
453
453
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
+
454
463
<row>
455
464
<entry><structname>pg_stat_database</structname><indexterm><primary>pg_stat_database</primary></indexterm></entry>
456
465
<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
2868
2877
2869
2878
<para>
2870
2879
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.
2872
2881
</para>
2873
2882
2874
2883
<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
2888
2897
<tbody>
2889
2898
<row>
2890
2899
<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>
2892
2901
</para>
2893
2902
<para>
2894
- Number of scheduled checkpoints that have been performed
2903
+ Number of buffers written by the background writer
2895
2904
</para></entry>
2896
2905
</row>
2897
2906
2898
2907
<row>
2899
2908
<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>
2901
2910
</para>
2902
2911
<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
2904
2914
</para></entry>
2905
2915
</row>
2906
2916
2907
2917
<row>
2908
2918
<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>
2910
2920
</para>
2911
2921
<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
2914
2923
</para></entry>
2915
2924
</row>
2916
2925
2917
2926
<row>
2918
2927
<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>
2920
2929
</para>
2921
2930
<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
2925
2932
</para></entry>
2926
2933
</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>
2927
2942
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>
2928
2956
<row>
2929
2957
<entry role="catalog_table_entry"><para role="column_definition">
2930
- <structfield>buffers_checkpoint</structfield> <type>bigint</type>
2958
+ Column Type
2931
2959
</para>
2932
2960
<para>
2933
- Number of buffers written during checkpoints
2961
+ Description
2934
2962
</para></entry>
2935
2963
</row>
2964
+ </thead>
2936
2965
2966
+ <tbody>
2937
2967
<row>
2938
2968
<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>
2940
2970
</para>
2941
2971
<para>
2942
- Number of buffers written by the background writer
2972
+ Number of scheduled checkpoints that have been performed
2943
2973
</para></entry>
2944
2974
</row>
2945
2975
2946
2976
<row>
2947
2977
<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>
2949
2979
</para>
2950
2980
<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
2953
2982
</para></entry>
2954
2983
</row>
2955
2984
2956
2985
<row>
2957
2986
<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>
2959
2988
</para>
2960
2989
<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
2962
3012
</para></entry>
2963
3013
</row>
2964
3014
@@ -4669,8 +4719,10 @@ description | Waiting for a newly initialized WAL file to reach durable storage
4669
4719
Resets some cluster-wide statistics counters to zero, depending on the
4670
4720
argument. The argument can be <literal>bgwriter</literal> to reset
4671
4721
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
4674
4726
the <structname>pg_stat_archiver</structname> view,
4675
4727
<literal>io</literal> to reset all the counters shown in the
4676
4728
<structname>pg_stat_io</structname> view,
0 commit comments