From c9cf982038e11f9ce3b8fb5634cf49e6900f48b9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 6 Jan 2003 22:48:16 +0000 Subject: Enable IPv6 libpq 'hostaddr' addresses. Update docs. --- doc/src/sgml/libpq.sgml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 29c229da315..4b6caf46814 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -110,14 +110,15 @@ PGconn *PQconnectdb(const char *conninfo) IP address of host to connect to. This should be in standard - numbers-and-dots form, as used by the BSD functions inet_aton et al. If - a nonzero-length string is specified, TCP/IP communication is used. + IPv4 address format, e.g. 172.28.40.9. If your machine + supports IPv6, you can also use those addresses. If a nonzero-length + string is specified, TCP/IP communication is used. Using hostaddr instead of host allows the application to avoid a host name look-up, which may be important in applications with time constraints. However, Kerberos authentication requires the host - name. The following therefore applies. If host is specified without + name. The following therefore applies: If host is specified without hostaddr, a host name lookup is forced. If hostaddr is specified without host, the value for hostaddr gives the remote address; if Kerberos is used, this causes a reverse name query. If both host and hostaddr are -- cgit v1.2.3