mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user