From: Simon Riggs Date: Fri, 1 Jun 2012 07:19:06 +0000 (+0100) Subject: Provide interim statistics while in mid-checkpoint. X-Git-Tag: REL9_2_BETA3~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ec6a2bbc966a05acf10a6753d8ec7db83f43f4c;p=postgresql 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 --- diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c index 5db60cd5d9..aa3df37324 100644 --- a/src/backend/postmaster/checkpointer.c +++ b/src/backend/postmaster/checkpointer.c @@ -708,6 +708,11 @@ CheckpointWriteDelay(int flags, double progress) CheckArchiveTimeout(); + /* + * Report interim activity statistics to the stats collector. + */ + pgstat_send_bgwriter(); + /* * This sleep used to be connected to bgwriter_delay, typically 200ms. * That resulted in more frequent wakeups if not much work to do.