]> granicus.if.org Git - postgresql/commit
Backport fsync queue compaction logic to all supported branches.
authorRobert Haas <rhaas@postgresql.org>
Tue, 26 Jun 2012 10:40:58 +0000 (06:40 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 26 Jun 2012 10:47:25 +0000 (06:47 -0400)
commit5cea1b0a8cfa25bdd31dcc1498e815b8aa72c49d
treea5566de5806a7d3f714c6154b1a1bfc07c064bd3
parent248f1ac813e7a5fd83816b1d85a3d4a14e7574a2
Backport fsync queue compaction logic to all supported branches.

This backports commit 7f242d880b5b5d9642675517466d31373961cf98,
except for the counter in pg_stat_bgwriter.  The underlying problem
(namely, that a full fsync request queue causes terrible checkpoint
behavior) continues to be reported in the wild, and this code seems
to be safe and robust enough to risk back-porting the fix.
src/backend/postmaster/bgwriter.c
src/backend/storage/smgr/md.c