pgsql: Backport fsync queue compaction logic to all supported branches.
pgsql: Backport fsync queue compaction logic to all supported branches.
От:
Robert Haas <rhaas@postgresql.org>
Дата:
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. Branch ------ REL8_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ef0f9dde4ea3b15804cb4210496c9b36edf6b647 Modified Files -------------- src/backend/postmaster/bgwriter.c | 129 ++++++++++++++++++++++++++++++++++--- src/backend/storage/smgr/md.c | 8 ++- 2 files changed, 127 insertions(+), 10 deletions(-)