Ignore server-side delays when enforcing wal_sender_timeout.
authorNoah Misch <[email protected]>
Sat, 1 Sep 2018 05:59:58 +0000 (22:59 -0700)
committerNoah Misch <[email protected]>
Sat, 1 Sep 2018 06:00:03 +0000 (23:00 -0700)
commit20cd88857b3a60d40cf019872cf8a5d40888e3ae
tree4f0b8ad25fd6652b21d307f5212f53e93f2caf0d
parentd9638a326f722af7e5c7e92995ed0e22ace670a3
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[email protected]
src/backend/replication/walsender.c