]> 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:22:47 +0000 (19:22 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Thu, 7 Jun 2012 18:22:47 +0000 (19:22 +0100)
commit2c8a4e9be2730342cbca85150a2a9d876aa77ff6
treed4431bf22e39c7c2a145cb2ce838f2cad6e0d3f8
parentb50991eedb458a81d875d049f48fb62ab1685c0d
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
src/backend/access/transam/xlog.c