Skip to content

Commit 6859d8c

Browse files
committed
Add mention that .pgpass localhost matches tcp and unix domain sockets.
1 parent 0849955 commit 6859d8c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.197 2005/10/24 15:38:36 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.198 2005/10/27 13:53:41 momjian Exp $
33
-->
44

55
<chapter id="libpq">
@@ -3976,12 +3976,14 @@ This file should contain lines of the following format:
39763976
<replaceable>hostname</replaceable>:<replaceable>port</replaceable>:<replaceable>database</replaceable>:<replaceable>username</replaceable>:<replaceable>password</replaceable>
39773977
</synopsis>
39783978
Each of the first four fields may be a literal value, or <literal>*</literal>,
3979-
which
3980-
matches anything. The password field from the first line that matches the
3979+
which matches anything. The password field from the first line that matches the
39813980
current connection parameters will be used. (Therefore, put more-specific
39823981
entries first when you are using wildcards.)
39833982
If an entry needs to contain <literal>:</literal> or
39843983
<literal>\</literal>, escape this character with <literal>\</literal>.
3984+
A hostname of <literal>localhost</> matches both <literal>host</> (TCP)
3985+
and <literal>local</> (Unix domain socket) connections coming from the
3986+
local machine.
39853987
</para>
39863988

39873989
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy