projects
/
users
/
hanada
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d1174
)
Have checkpointer send stats once each processing loop.
author
Simon Riggs
<
[email protected]
>
Tue, 1 Nov 2011 18:38:27 +0000
(18:38 +0000)
committer
Simon Riggs
<
[email protected]
>
Tue, 1 Nov 2011 18:38:27 +0000
(18:38 +0000)
Noted by Fujii Masao
src/backend/postmaster/checkpointer.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/checkpointer.c
b/src/backend/postmaster/checkpointer.c
index 2e36a0f2f331cd087d3395fc193835963b54c211..e9ae1e8ca0b1e7b4abc7a4473c77e04d7a763185 100644
(file)
--- 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.