aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2012-08-09 17:06:47 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2012-08-09 17:06:47 +0100
commit86ece4bff648364ece3cf03c0e7bfbe9fb3fc8cd (patch)
tree58aa44eb761ed13e72be9a93e33ab9bf2a7ad02b /src/backend
parent6a2cbe12358d3e3c356d863c8fc40c5f8daadb2a (diff)
downloadpostgresql-86ece4bff648364ece3cf03c0e7bfbe9fb3fc8cd.tar.gz
postgresql-86ece4bff648364ece3cf03c0e7bfbe9fb3fc8cd.zip
Turn off WalSender keepalives by default, users can enable if desired
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/replication/walsender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
index 53e134538f4..3f060b82c09 100644
--- a/src/backend/replication/walsender.c
+++ b/src/backend/replication/walsender.c
@@ -834,7 +834,7 @@ WalSndLoop(void)
if (pq_is_send_pending())
wakeEvents |= WL_SOCKET_WRITEABLE;
- else
+ else if (MyWalSnd->sendKeepalive)
{
WalSndKeepalive(output_message);
/* Try to flush pending output to the client */