pgsql: Be less aggressive in asking for feedback of logical walsender c

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pgsql: Be less aggressive in asking for feedback of logical walsender c
Дата
Msg-id E1XH837-0007v0-6d@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Be less aggressive in asking for feedback of logical walsender clients.

When doing logical decoding using START_LOGICAL_REPLICATION in a
walsender process the walsender sometimes was sending out keepalive
messages too frequently. Asking for feedback every time.

WalSndWaitForWal() sends out keepalive messages when it's waiting for
new WAL to be generated locally when it sees that the remote side
hasn't yet flushed WAL up to the local position. That generally is
good but causes problems if the remote side only writes but doesn't
flush changes yet. So check for both remote write and flush position.

Additionally we've asked for feedback to the keepalive message which
isn't warranted when waiting for WAL in contrast to preventing
timeouts because of wal_sender_timeout.

Complaint and patch by Steve Singer.

Branch
------
REL9_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/423f73df9dcb9fd5b05fb1ed17bd636245bb90f3

Modified Files
--------------
src/backend/replication/walsender.c |    6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: Be less aggressive in asking for feedback of logical walsender c
Следующее
От: Fujii Masao
Дата:
Сообщение: pgsql: Fix typo in \setrandom document.