Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8f3b2b3

Browse files
committed
Add mention of new leading-slash handling of hostname to libpq docs.
1 parent 026643a commit 8f3b2b3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/src/sgml/libpq.sgml

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.46 2000/11/13 23:37:51 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.47 2000/11/14 01:53:37 momjian Exp $
33
-->
44

55
<chapter id="libpq-chapter">
@@ -87,9 +87,10 @@ PGconn *PQconnectdb(const char *conninfo)
8787
<term><literal>host</literal></term>
8888
<listitem>
8989
<para>
90-
Name of host to connect to. If a non-zero-length string is
91-
specified, TCP/IP communication is used, else Unix sockets.
90+
Name of host to connect to.
9291
Using this parameter causes a hostname look-up. See hostaddr.
92+
If it begins with a slash, it is used
93+
as the path to a unix domain socket.
9394
</para>
9495
</listitem>
9596
</varlistentry>
@@ -1838,7 +1839,8 @@ application programs.
18381839
<listitem>
18391840
<para>
18401841
<envar>PGHOST</envar> sets the default server name.
1841-
If a non-zero-length string is specified, TCP/IP communication is used.
1842+
If it beings with a slash, it is used as the path to a unix domain
1843+
socket.
18421844
Without a host name, libpq will connect using a local Unix domain socket.
18431845
</para>
18441846
</listitem>

0 commit comments

Comments
 (0)