summaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeAppend.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-06-30 12:00:03 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-06-30 12:00:03 -0400
commit446914f6b69a81d1306d0deeadc1eb2e8a02c264 (patch)
treed61323f45dd9737e883cdb0d45ddebc3c00b86aa /src/backend/executor/nodeAppend.c
parent63f5db8ab7e7bebe22b45f7c9beadcb48b3e014c (diff)
Fix walsender to exit promptly if client requests shutdown.
It's possible for WalSndWaitForWal to be asked to wait for WAL that doesn't exist yet. That's fine, in fact it's the normal situation if we're caught up; but when the client requests shutdown we should not keep waiting. The previous coding could wait indefinitely if the source server was idle. In passing, improve the rather weak comments in this area, and slightly rearrange some related code for better readability. Back-patch to 9.4 where this code was introduced. Discussion: https://postgr.es/m/14154.1498781234@sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeAppend.c')
0 files changed, 0 insertions, 0 deletions