From: Bruce Momjian Date: Tue, 14 Nov 2000 01:53:37 +0000 (+0000) Subject: Add mention of new leading-slash handling of hostname to libpq docs. X-Git-Tag: REL7_1_BETA~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f3b2b3a5c902640ae33648637fa624405f376d2;p=postgresql Add mention of new leading-slash handling of hostname to libpq docs. --- diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index c742df415d..bb6dc844a1 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -87,9 +87,10 @@ PGconn *PQconnectdb(const char *conninfo) host - Name of host to connect to. If a non-zero-length string is - specified, TCP/IP communication is used, else Unix sockets. + Name of host to connect to. Using this parameter causes a hostname look-up. See hostaddr. + If it begins with a slash, it is used + as the path to a unix domain socket. @@ -1838,7 +1839,8 @@ application programs. PGHOST sets the default server name. -If a non-zero-length string is specified, TCP/IP communication is used. +If it beings with a slash, it is used as the path to a unix domain +socket. Without a host name, libpq will connect using a local Unix domain socket.