]> granicus.if.org Git - postgresql/commit
Ignore server-side delays when enforcing wal_sender_timeout.
authorNoah Misch <noah@leadboat.com>
Sat, 1 Sep 2018 05:59:58 +0000 (22:59 -0700)
committerNoah Misch <noah@leadboat.com>
Sat, 1 Sep 2018 06:00:02 +0000 (23:00 -0700)
commite3eca937c7432bdbb72cb3033585512cd4438806
tree64ddb4cd6854d984e9b89b30ab09d8a479490b14
parentf3520ff6fbf1e213069ec6ee0d02d2a9bdbc19de
Ignore server-side delays when enforcing wal_sender_timeout.

Healthy clients of servers having poor I/O performance, such as
buildfarm members hamster and tern, saw unexpected timeouts.  That
disagreed with documentation.  This fix adds one gettimeofday() call
whenever ProcessRepliesIfAny() finds no client reply messages.
Back-patch to 9.4; the bug's symptom is rare and mild, and the code all
moved between 9.3 and 9.4.

Discussion: https://postgr.es/m/20180826034600.GA1105084@rfd.leadboat.com
src/backend/replication/walsender.c