]> granicus.if.org Git - postgresql/commit
Fix statistics breakage from bgwriter/checkpointer process split.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jul 2012 19:40:35 +0000 (15:40 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Jul 2012 19:40:35 +0000 (15:40 -0400)
commit1e9326d6a3efcb5648a85c1653cc263bc787efa0
treefa1103086f04915d82d07780c23345b5501f0364
parentd843589e5ab361dd4738dab5c9016e704faf4153
Fix statistics breakage from bgwriter/checkpointer process split.

ForwardFsyncRequest() supposed that it could only be called in regular
backends, which used to be true; but since the splitup of bgwriter and
checkpointer, it is also called in the bgwriter.  We do not want to count
such calls in pg_stat_bgwriter.buffers_backend statistics, so fix things
so that they aren't.

(It's worth noting here that this implies an alarmingly large increase in
the expected amount of cross-process fsync request traffic, which may well
mean that the process splitup was not such a hot idea.)
src/backend/postmaster/checkpointer.c