aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ascii.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2020-04-25 10:18:12 -0700
committerNoah Misch <noah@leadboat.com>2020-04-25 10:18:12 -0700
commitf246ea3b2a5e0b75e44f0f18157c4b5e10b5547f (patch)
tree3570f7790e1244103ce570bbfc8f2171a22f8875 /src/backend/utils/adt/ascii.c
parent72a3dc321d76c93842d502793f93b9dc2d2305b2 (diff)
downloadpostgresql-f246ea3b2a5e0b75e44f0f18157c4b5e10b5547f.tar.gz
postgresql-f246ea3b2a5e0b75e44f0f18157c4b5e10b5547f.zip
In caught-up logical walsender, sleep only in WalSndWaitForWal().
Before sleeping, WalSndWaitForWal() sends a keepalive if MyWalSnd->write < sentPtr. When the latest physical LSN yields no logical replication messages (a common case), that keepalive elicits a reply. Processing the reply updates pg_stat_replication.replay_lsn. WalSndLoop() lacks that; when WalSndLoop() slept, replay_lsn advancement could stall until wal_receiver_status_interval elapsed. This sometimes stalled src/test/subscription/t/001_rep_changes.pl for up to 10s. Reviewed by Fujii Masao and Michael Paquier. Discussion: https://postgr.es/m/20200418070142.GA1075445@rfd.leadboat.com
Diffstat (limited to 'src/backend/utils/adt/ascii.c')
0 files changed, 0 insertions, 0 deletions