1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 >The Password File</TITLE
8 CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
10 HREF="mailto:pgsql-docs@postgresql.org"><LINK
12 TITLE="PostgreSQL 7.4.1 Documentation"
13 HREF="index.html"><LINK
15 TITLE="libpq - C Library"
16 HREF="libpq.html"><LINK
18 TITLE="Environment Variables"
19 HREF="libpq-envars.html"><LINK
21 TITLE="Behavior in Threaded Programs"
22 HREF="libpq-threading.html"><LINK
25 HREF="stylesheet.css"><META
27 CONTENT="2003-12-22T03:48:47"></HEAD
33 SUMMARY="Header navigation table"
43 >PostgreSQL 7.4.1 Documentation</TH
51 HREF="libpq-envars.html"
84 HREF="libpq-threading.html"
99 >27.11. The Password File</A
111 > in a user's home directory is a file
112 that can contain passwords to be used if the connection requires a
113 password (and no password has been specified otherwise).
114 This file should have lines of the following format:
134 Each of the first four fields may be a literal value, or <TT
139 matches anything. The password field from the first line that matches the
140 current connection parameters will be used. (Therefore, put more-specific
141 entries first when you are using wildcards.)
142 If an entry needs to contain <TT
149 >, escape this character with <TT
154 >The permissions on <TT
158 access to world or group; achieve this by the command
161 >chmod 0600 ~/.pgpass</TT
163 If the permissions are less strict than this, the file will be ignored.</P
170 SUMMARY="Footer navigation table"
181 HREF="libpq-envars.html"
199 HREF="libpq-threading.html"
209 >Environment Variables</TD
223 >Behavior in Threaded Programs</TD