aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2011-11-01 18:38:27 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2011-11-01 18:38:27 +0000
commit3ba182056faac66012aad8dedf2cb50ba511d989 (patch)
tree2dcd50b55cea4a068ae53093b2abc96638a2fa78 /src
parent09d1174e5ad3ec7c90c99e2ad4dd896368b018ce (diff)
downloadpostgresql-3ba182056faac66012aad8dedf2cb50ba511d989.tar.gz
postgresql-3ba182056faac66012aad8dedf2cb50ba511d989.zip
Have checkpointer send stats once each processing loop.
Noted by Fujii Masao
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/checkpointer.c5
1 files changed, 5 insertions, 0 deletions
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
@@ -528,6 +528,11 @@ CheckpointerMain(void)
}
/*
+ * 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.
* Relatively long sleep because the bgwriter does cleanup now.