summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Haas2011-03-01 16:32:23 +0000
committerRobert Haas2011-03-01 16:34:25 +0000
commit59d6a7594288ebc909a24f3fc9e502f097bbe2ff (patch)
treeb4d3fbb6a2bd33b73015906f2038862c053eb6de /src
parentc0b00760365c74308e9e0719c993eadfbcd090c2 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/backend/replication/walreceiver.c2
1 files changed, 1 insertions, 1 deletions
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. */