From 59d6a7594288ebc909a24f3fc9e502f097bbe2ff Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 1 Mar 2011 11:32:23 -0500 Subject: Avoid excessive Hot Standby feedback messages. Without this patch, when wal_receiver_status_interval=0, indicating that no status messages should be sent, Hot Standby feedback messages are instead sent extremely frequently. Fujii Masao, with documentation changes by me. --- src/backend/replication/walreceiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/backend/replication/walreceiver.c b/src/backend/replication/walreceiver.c index c7f5bd5ea39..3826e82c052 100644 --- a/src/backend/replication/walreceiver.c +++ b/src/backend/replication/walreceiver.c @@ -651,7 +651,7 @@ XLogWalRcvSendHSFeedback(void) * If the user doesn't want status to be reported to the master, be sure * to exit before doing anything at all. */ - if (!hot_standby_feedback) + if (wal_receiver_status_interval <= 0 || !hot_standby_feedback) return; /* Get current timestamp. */ -- cgit v1.2.3