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

Commit 1ec6a2b

Browse files
Provide interim statistics while in mid-checkpoint.
Re-implements similar functionality in 9.1 and previously which was removed during split of checkpointer and bgwriter. Requested/spotted by Magnus Hagander
1 parent 4bec93a commit 1ec6a2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/backend/postmaster/checkpointer.c

+5
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,11 @@ CheckpointWriteDelay(int flags, double progress)
708708

709709
CheckArchiveTimeout();
710710

711+
/*
712+
* Report interim activity statistics to the stats collector.
713+
*/
714+
pgstat_send_bgwriter();
715+
711716
/*
712717
* This sleep used to be connected to bgwriter_delay, typically 200ms.
713718
* That resulted in more frequent wakeups if not much work to do.

0 commit comments

Comments
 (0)