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

Lines changed: 5 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy