From: Tom Lane <tgl@sss.pgh.pa.us>
To: postgress@sendthemtomir.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: Docs for version 10 incorrectly claim that ~/.pgpass with 0600 perms work.
Date: Wed, 25 Jul 2018 13:12:55 -0400
Message-ID: <6668.1532538775@sss.pgh.pa.us> (raw)
In-Reply-To: <153246792915.1402.4290097572382403810@wrigleys.postgresql.org>
References: <153246792915.1402.4290097572382403810@wrigleys.postgresql.org>
=?utf-8?q?PG_Doc_comments_form?= <noreply@postgresql.org> writes:
> .pgpass does not work with 10.4
Works for me. Care to provide a complete example?
$ cat $PGDATA/pg_hba.conf
...
# IPv4 local connections:
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
...
regression=# create user joe password 'joespw';
CREATE ROLE
$ ls -l ~/.pgpass
-rw-------. 1 tgl tgl 25 Jul 25 13:09 /home/tgl/.pgpass
$ cat ~/.pgpass
localhost:*:*:joe:joespw
$ psql -U joe -h localhost regression
psql (10.4)
Type "help" for help.
I can replicate your symptoms if there's not actually a matching
entry in the .pgpass file ...
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: tgl@sss.pgh.pa.us, postgress@sendthemtomir.com, pgsql-docs@lists.postgresql.org
Subject: Re: Docs for version 10 incorrectly claim that ~/.pgpass with 0600 perms work.
In-Reply-To: <6668.1532538775@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox