Always set "connect_timeout" when pinging a PostgreSQL instance

Insert "connect_timeout=2" into the connection parameters, if not
explicitly set by the user. This will prevent excessive wait time
for the host operating system to report a connection timeout.
This commit is contained in:
Ian Barwick
2018-03-21 10:33:05 +09:00
committed by Ian Barwick
parent ae655eb4fd
commit 94d26dbe9f
4 changed files with 44 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
repmgrd: fix memory leaks in witness code (AndrzejNowicki, Martín)
repmgrd: handle failover situation with only two nodes in the primary
location, and at least one node in another location; GitHub #407 (Ian)
repmgrd: set "connect_timeout=2" when pinging a server (Ian)
4.0.4 2018-03-09
repmgr: add "standby clone --recovery-conf-only" option; GitHub #382 (Ian)