]> granicus.if.org Git - postgresql/commitdiff
Have checkpointer send stats once each processing loop.
authorSimon Riggs <simon@2ndQuadrant.com>
Tue, 1 Nov 2011 18:38:27 +0000 (18:38 +0000)
committerSimon Riggs <simon@2ndQuadrant.com>
Tue, 1 Nov 2011 18:38:27 +0000 (18:38 +0000)
Noted by Fujii Masao

src/backend/postmaster/checkpointer.c

index 2e36a0f2f331cd087d3395fc193835963b54c211..e9ae1e8ca0b1e7b4abc7a4473c77e04d7a763185 100644 (file)
@@ -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.