From: Bruce Momjian Date: Sun, 6 Feb 2011 17:04:42 +0000 (-0500) Subject: Adjust libpq docs to be clearer about 'hostaddr' usage by rewording and X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=5ed45ac09c604555740e7365a722b641f3bce498;p=users%2Fhanada%2Fpostgres.git Adjust libpq docs to be clearer about 'hostaddr' usage by rewording and using an itemized list. --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index e78d70828e..38245886a7 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -164,22 +164,36 @@ PGconn *PQconnectdbParams(const char **keywords, const char **values, int expand Using hostaddr instead of host allows the application to avoid a host name look-up, which might be important in applications with time constraints. However, a host name is - required for Kerberos, GSSAPI, or SSPI authentication, as well as - for full SSL certificate verification. The following rules are - used: - If host is specified without hostaddr, - a host name lookup occurs. - If hostaddr is specified without host, - 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 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 - if host is not the name of the machine at - hostaddr. + required for Kerberos, GSSAPI, or SSPI authentication + methods, as well as for verify-full SSL + certificate verification. The following rules are used: + + + + If host is specified without hostaddr, + a host name lookup occurs. + + + + + If hostaddr is specified without host, + the value for hostaddr gives the server network address. + The connection attempt will fail if the authentication + method requires a host name. + + + + + If both host and hostaddr are specified, + the value for hostaddr gives the server network address. + The value for host is ignored unless the + authentication method requires it, in which case it will be + used as the host name. + + + + Note that authentication is likely to fail if host + is not the name of the server at network address hostaddr. Also, note that host rather than hostaddr is used to identify the connection in ~/.pgpass (see ).