postgres.git / summary / log / commit / refs
commit 3ba182056faac66012aad8dedf2cb50ba511d989
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: Tue Nov 01 18:38:27 2011 +0000
First released in: 9.2.0
Have checkpointer send stats once each processing loop.
Noted by Fujii Masao
src/backend/postmaster/checkpointer.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c
index 2e36a0f2f33..e9ae1e8ca0b 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.
[parent: 09d1174e5ad3]