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
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.217 2003/01/06 03:18:27 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.218 2003/01/06 22:48:16 momjian Exp $
*
*-------------------------------------------------------------------------
*/
"Database-Host", "", 40},
{"hostaddr", "PGHOSTADDR", NULL, NULL,
- "Database-Host-IPv4-Address", "", 15}, /* Room for
- * abc.def.ghi.jkl */
-
+ "Database-Host-IP-Address", "", 45},
+
{"port", "PGPORT", DEF_PGPORT_STR, NULL,
"Database-Port", "", 6},