pgsql: Wake WALSender to reduce data loss at failover for async commit.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Wake WALSender to reduce data loss at failover for async commit.
Date: 2012-06-07 18:23:51
Message-ID: E1SchN9-0004a1-1N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Wake WALSender to reduce data loss at failover for async commit.
WALSender now woken up after each background flush by WALwriter, avoiding
multi-second replication delay for an all-async commit workload.
Replication delay reduced from 7s with default settings to 200ms and often
much less, allowing significantly reduced data loss at failover.

Andres Freund and Simon Riggs

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2c8a4e9be2730342cbca85150a2a9d876aa77ff6

Modified Files
--------------
src/backend/access/transam/xlog.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2012-06-07 18:25:21 pgsql: Wake WALSender to reduce data loss at failover for async commit.
Previous Message Robert Haas 2012-06-07 16:49:25 pgsql: Fix more crash-safe visibility map bugs, and improve comments.