diff options
| author | Robert Haas | 2017-05-19 20:19:51 +0000 |
|---|---|---|
| committer | Robert Haas | 2017-05-19 20:19:51 +0000 |
| commit | 5f374fe7a83304fd339789da22599bd102dac9e5 (patch) | |
| tree | 42bbf462f55a505452e107074fe06ecfe925348e /doc/src | |
| parent | aa41bc794c51a4d5c364cca014c199b1a00d26aa (diff) | |
libpq: Try next host if one of them times out.
If one host in a multi-host connection string times out, move on to
the next specified host instead of giving up entirely.
Takayuki Tsunakawa, reviewed by Michael Paquier. I added
a minor adjustment to the documentation.
Discussion: http://postgr.es/m/0A3221C70F24FB45833433255569204D1F6F42F5@G01JPEXMBYT05
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/libpq.sgml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index d20d314082..493cc12d61 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1041,9 +1041,10 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname string). Zero or not specified means wait indefinitely. It is not recommended to use a timeout of less than 2 seconds. This timeout applies separately to each connection attempt. - For example, if you specify two hosts and both of them are unreachable, - and <literal>connect_timeout</> is 5, the total time spent waiting for a - connection might be up to 10 seconds. + For example, if you specify two hosts and <literal>connect_timeout</> + is 5, each host will time out if no connection is made within 5 + seconds, so the total time spent waiting for a connection might be + up to 10 seconds. </para> </listitem> </varlistentry> |
