pgsql: Fix an issue in recent walwriter hibernation patch.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix an issue in recent walwriter hibernation patch.
Date: 2012-05-09 03:06:52
Message-ID: E1SRxEq-0004Eh-5i@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix an issue in recent walwriter hibernation patch.

Users of asynchronous-commit mode expect there to be a guaranteed maximum
delay before an async commit's WAL records get flushed to disk. The
original version of the walwriter hibernation patch broke that. Add an
extra shared-memory flag to allow async commits to kick the walwriter out
of hibernation mode, without adding any noticeable overhead in cases where
no action is needed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/acd4c7d58baf09fc278a0f8c1170fba2d56ccdd5

Modified Files
--------------
src/backend/access/transam/xlog.c | 48 ++++++++++++++++++++++++++++++-----
src/backend/postmaster/walwriter.c | 18 +++++++++++++
src/include/access/xlog.h | 1 +
3 files changed, 60 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2012-05-09 03:17:54 pgsql: Add another URL for HTML entity codes.
Previous Message Bruce Momjian 2012-05-09 02:51:35 pgsql: Document how to find non-ASCII characters in the release notes.