diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-11-24 17:04:19 -0500 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-11-24 17:04:19 -0500 |
commit | ba11258ccbf364d85de48b8b7fd46953ea7bb4f4 (patch) | |
tree | 94824222a24f4e98cb2af0e90f845a687eb38dac /doc/src | |
parent | 725d52d0c27cffe8c99bb78e2b0d2480d5cd702b (diff) | |
download | postgresql-ba11258ccbf364d85de48b8b7fd46953ea7bb4f4.tar.gz postgresql-ba11258ccbf364d85de48b8b7fd46953ea7bb4f4.zip |
When reporting the server as not responding, if the hostname was
supplied, also print the IP address. This allows IPv4 and IPv6 failures
to be distinguished. Also useful when a hostname resolves to multiple
IP addresses.
Also, remove use of inet_ntoa() and use our own inet_net_ntop() in all
places, including in libpq, because it is thread-safe.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 5cc81bbe269..c95fc4fd64d 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -170,11 +170,11 @@ PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand If <literal>host</> is specified without <literal>hostaddr</>, a host name lookup occurs. If <literal>hostaddr</> is specified without <literal>host</>, - the value for <literal>hostaddr</> gives the server address. + the value for <literal>hostaddr</> gives the server network address. The connection attempt will fail in any of the cases where a host name is required. If both <literal>host</> and <literal>hostaddr</> are specified, - the value for <literal>hostaddr</> gives the server address. + the value for <literal>hostaddr</> gives the server network address. The value for <literal>host</> is ignored unless needed for authentication or verification purposes, in which case it will be used as the host name. Note that authentication is likely to fail |