Commit 6859d8c1 authored by Bruce Momjian's avatar Bruce Momjian

Add mention that .pgpass localhost matches tcp and unix domain sockets.

parent 0849955f
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.197 2005/10/24 15:38:36 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.198 2005/10/27 13:53:41 momjian Exp $
--> -->
<chapter id="libpq"> <chapter id="libpq">
...@@ -3976,12 +3976,14 @@ This file should contain lines of the following format: ...@@ -3976,12 +3976,14 @@ This file should contain lines of the following format:
<replaceable>hostname</replaceable>:<replaceable>port</replaceable>:<replaceable>database</replaceable>:<replaceable>username</replaceable>:<replaceable>password</replaceable> <replaceable>hostname</replaceable>:<replaceable>port</replaceable>:<replaceable>database</replaceable>:<replaceable>username</replaceable>:<replaceable>password</replaceable>
</synopsis> </synopsis>
Each of the first four fields may be a literal value, or <literal>*</literal>, Each of the first four fields may be a literal value, or <literal>*</literal>,
which which matches anything. The password field from the first line that matches the
matches anything. The password field from the first line that matches the
current connection parameters will be used. (Therefore, put more-specific current connection parameters will be used. (Therefore, put more-specific
entries first when you are using wildcards.) entries first when you are using wildcards.)
If an entry needs to contain <literal>:</literal> or If an entry needs to contain <literal>:</literal> or
<literal>\</literal>, escape this character with <literal>\</literal>. <literal>\</literal>, escape this character with <literal>\</literal>.
A hostname of <literal>localhost</> matches both <literal>host</> (TCP)
and <literal>local</> (Unix domain socket) connections coming from the
local machine.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment