From 8f3b2b3a5c902640ae33648637fa624405f376d2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 14 Nov 2000 01:53:37 +0000 Subject: [PATCH] Add mention of new leading-slash handling of hostname to libpq docs. --- doc/src/sgml/libpq.sgml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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. -- 2.40.0