Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitda4efa1

Browse files
Turn off WalSender keepalives by default, users can enable if desired
1 parent87d8bd7 commitda4efa1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

‎src/backend/replication/walsender.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ WalSndLoop(void)
837837

838838
if (pq_is_send_pending())
839839
wakeEvents |=WL_SOCKET_WRITEABLE;
840-
else
840+
elseif (MyWalSnd->sendKeepalive)
841841
{
842842
WalSndKeepalive(output_message);
843843
/* Try to flush pending output to the client */

‎src/include/replication/walsender_private.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ typedef struct WalSnd
3737
XLogRecPtrsentPtr;/* WAL has been sent up to this point */
3838
boolneedreload;/* does currently-open file need to be
3939
* reloaded? */
40+
boolsendKeepalive;/* do we send keepalives on this connection? */
4041

4142
/*
4243
* The xlog locations that have been written, flushed, and applied by

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp