Add mention of new leading-slash handling of hostname to libpq docs.
authorBruce Momjian <bruce@momjian.us>
Tue, 14 Nov 2000 01:53:37 +0000 (01:53 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 14 Nov 2000 01:53:37 +0000 (01:53 +0000)
doc/src/sgml/libpq.sgml

index aec57bc47ff8aeb7ba4c893f11d62d146b37d7a2..3a999f249c61bf99823163b1b8e8851c1c6710e4 100644 (file)
@@ -87,9 +87,10 @@ PGconn *PQconnectdb(const char *conninfo)
      <term><literal>host</literal></term>
      <listitem>
      <para>
-      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.
      </para>
      </listitem>
     </varlistentry>
@@ -1838,7 +1839,8 @@ application programs.
 <listitem>
 <para>
 <envar>PGHOST</envar> 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.
 </para>
 </listitem>