mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Provide interim statistics while in mid-checkpoint.
Re-implements similar functionality in 9.1 and previously which was removed during split of checkpointer and bgwriter. Requested/spotted by Magnus Hagander
This commit is contained in:
parent
4bec93ac0f
commit
1ec6a2bbc9
@ -708,6 +708,11 @@ CheckpointWriteDelay(int flags, double progress)
|
|||||||
|
|
||||||
CheckArchiveTimeout();
|
CheckArchiveTimeout();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Report interim activity statistics to the stats collector.
|
||||||
|
*/
|
||||||
|
pgstat_send_bgwriter();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This sleep used to be connected to bgwriter_delay, typically 200ms.
|
* This sleep used to be connected to bgwriter_delay, typically 200ms.
|
||||||
* That resulted in more frequent wakeups if not much work to do.
|
* That resulted in more frequent wakeups if not much work to do.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user