Implement "distributed" checkpoints in which the checkpoint I/O is spread

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 867e2c91a0c341111b7a5257dc4c9a2659a022dc
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-06-28T00:02:40Z
Releases: 8.3.0
Implement "distributed" checkpoints in which the checkpoint I/O is spread
over a fairly long period of time, rather than being spat out in a burst.
This happens only for background checkpoints carried out by the bgwriter;
other cases, such as a shutdown checkpoint, are still done at full speed.

Remove the "all buffers" scan in the bgwriter, and associated stats
infrastructure, since this seems no longer very useful when the checkpoint
itself is properly throttled.

Original patch by Itagaki Takahiro, reworked by Heikki Linnakangas,
and some minor API editorialization by me.

Files