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

Simon Riggs <simon@2ndQuadrant.com>

Commit: 16222f32ed56d3ebc4136133662d932299188955
Author: Simon Riggs <simon@2ndQuadrant.com>
Date: 2012-06-07T18:24:47Z
Releases: 9.1.5
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, allowing
significantly reduced data loss at failover.

Andres Freund and Simon Riggs

Files

PathChange+/−
src/backend/access/transam/xlog.c modified +9 −0