From ba11258ccbf364d85de48b8b7fd46953ea7bb4f4 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 24 Nov 2010 17:04:19 -0500 Subject: 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. --- doc/src/sgml/libpq.sgml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/src') 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 host is specified without hostaddr, a host name lookup occurs. If hostaddr is specified without host, - the value for hostaddr gives the server address. + the value for hostaddr gives the server network address. The connection attempt will fail in any of the cases where a host name is required. If both host and hostaddr are specified, - the value for hostaddr gives the server address. + the value for hostaddr gives the server network address. The value for 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 -- cgit v1.2.3