From e34acac62e848fc144699d18b33865e1d9474dc3 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 16 Jan 2014 23:05:02 +0200 Subject: [PATCH] Fix Hot Standby feedback sending when streaming busily. Commit 6f60fdd7015b032bf49273c99f80913d57eac284 accidentally removed a call to XLogWalRcvSendHSFeedback() after flushing received WAL to disk. The consequence is that when walsender is busy streaming WAL, it doesn't send HS feedback messages. One is sent if nothing is received from the master for 100ms, but if there's a steady stream of WAL, it never happens. Backpatch to 9.3. Andres Freund and Amit Kapila --- src/backend/replication/walreceiver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c index 413f0b94051..7fe80a94a30 100644 --- a/src/backend/replication/walreceiver.c +++ b/src/backend/replication/walreceiver.c @@ -1007,7 +1007,10 @@ XLogWalRcvFlush(bool dying) /* Also let the master know that we made some progress */ if (!dying) + { XLogWalRcvSendReply(false, false); + XLogWalRcvSendHSFeedback(false); + } } }