diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index b8499f02323..bff6f294f48 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -2519,10 +2519,13 @@ This file should have lines of the following format: hostname:port:database:username:password -Each of these fields may be a literal name or *, which -matches anything. The first matching entry will be used, so put more-specific -entries first. When an entry contain : or -\, it must be escaped with \. +Each of the first four fields may be a literal value, or *, +which +matches anything. The password field from the first line that matches the +current connection parameters will be used. (Therefore, put more-specific +entries first when you are using wildcards.) +If an entry needs to contain : or +\, escape this character with \. The permissions on .pgpass must disallow any