]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Wake WALSender to reduce data loss at failover for async commit.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Jun 2012 18:24:47 +0000 (19:24 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Jun 2012 18:24:47 +0000 (19:24 +0100)
commit16222f32ed56d3ebc4136133662d932299188955
tree737eaf939f161aec7468330e8194d77e3553f1eb
parent5c3532876f8360df10692baf77a0b79c41ee001e
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
src/backend/access/transam/xlog.c