From: Simon Riggs Date: Tue, 1 Nov 2011 18:38:27 +0000 (+0000) Subject: Have checkpointer send stats once each processing loop. X-Git-Tag: REL9_2_BETA1~903 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ba182056faac66012aad8dedf2cb50ba511d989;p=postgresql Have checkpointer send stats once each processing loop. Noted by Fujii Masao --- diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c index 2e36a0f2f3..e9ae1e8ca0 100644 --- a/src/backend/postmaster/checkpointer.c +++ b/src/backend/postmaster/checkpointer.c @@ -527,6 +527,11 @@ CheckpointerMain(void) ckpt_active = false; } + /* + * Send off activity statistics to the stats collector + */ + pgstat_send_bgwriter(); + /* * Nap for a while and then loop again. Later patches will replace * this with a latch loop. Keep it simple now for clarity.