]> granicus.if.org Git - postgresql/commit
Wake WALSender to reduce data loss at failover for async commit.
authorSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Jun 2012 18:26:03 +0000 (19:26 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Jun 2012 18:26:03 +0000 (19:26 +0100)
commit090e8a984cf1a8a3ef7f6db6dc919f843902d80c
tree87eebd8c0642708688fa98188fcc6a90c74255d5
parent110ebff20972101236b27c876c14e6df2833b571
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