File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -6737,7 +6737,9 @@ CreateCheckPoint(int flags)
6737
6737
{
6738
6738
do
6739
6739
{
6740
+ pgstat_report_wait_start (WAIT_EVENT_CHECKPOINT_DELAY_START );
6740
6741
pg_usleep (10000L ); /* wait for 10 msec */
6742
+ pgstat_report_wait_end ();
6741
6743
} while (HaveVirtualXIDsDelayingChkpt (vxids , nvxids ,
6742
6744
DELAY_CHKPT_START ));
6743
6745
}
@@ -6750,7 +6752,9 @@ CreateCheckPoint(int flags)
6750
6752
{
6751
6753
do
6752
6754
{
6755
+ pgstat_report_wait_start (WAIT_EVENT_CHECKPOINT_DELAY_COMPLETE );
6753
6756
pg_usleep (10000L ); /* wait for 10 msec */
6757
+ pgstat_report_wait_end ();
6754
6758
} while (HaveVirtualXIDsDelayingChkpt (vxids , nvxids ,
6755
6759
DELAY_CHKPT_COMPLETE ));
6756
6760
}
Original file line number Diff line number Diff line change @@ -97,6 +97,8 @@ BGWORKER_SHUTDOWN "Waiting for background worker to shut down."
97
97
BGWORKER_STARTUP "Waiting for background worker to start up."
98
98
BTREE_PAGE "Waiting for the page number needed to continue a parallel B-tree scan to become available."
99
99
BUFFER_IO "Waiting for buffer I/O to complete."
100
+ CHECKPOINT_DELAY_COMPLETE "Waiting for a backend that blocks a checkpoint from completing."
101
+ CHECKPOINT_DELAY_START "Waiting for a backend that blocks a checkpoint from starting."
100
102
CHECKPOINT_DONE "Waiting for a checkpoint to complete."
101
103
CHECKPOINT_START "Waiting for a checkpoint to start."
102
104
EXECUTE_GATHER "Waiting for activity from a child process while executing a <literal>Gather</literal> plan node."
You can’t perform that action at this time.
0 commit comments