Location via proxy:
[ UP ]
[Report a bug]
[Manage cookies]
No cookies
No scripts
No ads
No referrer
Show this form
projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bec93a
)
Provide interim statistics while in mid-checkpoint.
author
Simon Riggs
<simon@2ndQuadrant.com>
Fri, 1 Jun 2012 07:19:06 +0000
(08:19 +0100)
committer
Simon Riggs
<simon@2ndQuadrant.com>
Fri, 1 Jun 2012 07:19:06 +0000
(08:19 +0100)
Re-implements similar functionality in 9.1 and previously which
was removed during split of checkpointer and bgwriter.
Requested/spotted by Magnus Hagander
src/backend/postmaster/checkpointer.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/checkpointer.c
b/src/backend/postmaster/checkpointer.c
index 5db60cd5d982677b3b3b086f1a996917ecf63251..aa3df37324789c5fe8bac0c62b2d0233e855e9c5 100644
(file)
--- a/
src/backend/postmaster/checkpointer.c
+++ b/
src/backend/postmaster/checkpointer.c
@@
-708,6
+708,11
@@
CheckpointWriteDelay(int flags, double progress)
CheckArchiveTimeout();
+ /*
+ * Report interim activity statistics to the stats collector.
+ */
+ pgstat_send_bgwriter();
+
/*
* This sleep used to be connected to bgwriter_delay, typically 200ms.
* That resulted in more frequent wakeups if not much work to do.