pgsql: Wake WALSender to reduce data loss at failover for async commit.
pgsql: Wake WALSender to reduce data loss at failover for async commit.
От:
Simon Riggs <simon@2ndQuadrant.com>
Дата:
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 Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/090e8a984cf1a8a3ef7f6db6dc919f843902d80c Modified Files -------------- src/backend/access/transam/xlog.c | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-)