pgsql: Wake WALSender to reduce data loss at failover for async commit. - Mailing list pgsql-committers

From Simon Riggs
Subject pgsql: Wake WALSender to reduce data loss at failover for async commit.
Date
Msg-id E1SchN9-0004a1-1N@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: Fix more crash-safe visibility map bugs, and improve comments.
Next
From: Simon Riggs
Date:
Subject: pgsql: Wake WALSender to reduce data loss at failover for async commit.