mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Add mention of new leading-slash handling of hostname to libpq docs.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
<!--
|
<!--
|
||||||
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.46 2000/11/13 23:37:51 momjian Exp $
|
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.47 2000/11/14 01:53:37 momjian Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<chapter id="libpq-chapter">
|
<chapter id="libpq-chapter">
|
||||||
@ -87,9 +87,10 @@ PGconn *PQconnectdb(const char *conninfo)
|
|||||||
<term><literal>host</literal></term>
|
<term><literal>host</literal></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Name of host to connect to. If a non-zero-length string is
|
Name of host to connect to.
|
||||||
specified, TCP/IP communication is used, else Unix sockets.
|
|
||||||
Using this parameter causes a hostname look-up. See hostaddr.
|
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>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -1838,7 +1839,8 @@ application programs.
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
<envar>PGHOST</envar> sets the default server name.
|
<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.
|
Without a host name, libpq will connect using a local Unix domain socket.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
Reference in New Issue
Block a user