From: bzb.dev001@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13188: .pgpass does not work
Date: Tue, 28 Apr 2015 18:10:07 +0000
Message-ID: <20150428181007.2546.64960@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13188
Logged by: wt
Email address: bzb.dev001@gmail.com
PostgreSQL version: 9.4.1
Operating system: linux
Description:
Tried to use ~/.pgpass file to automatically specify the password when I use
the psql console app. according to the info from "PostgreSQL 9.4.0
Documentation", Section 31.15. The Password File.
Postgresql is configured to use md5 for login.
file: pg_hba.conf
-----------------
local all all md5
host all all 127.0.0.1/32 md5
host all all ::1/128 md5
file: ~/.pgpass
---------------
#hostname : port : database : username : password
* : 5432 : * : postgres : somepassword
When I exec psql without specifying the password, I cannot login...
$ psql --host=localhost --port=5432 --username=postgres --no-password
psql: fe_sendauth: no password supplied
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: bzb.dev001@gmail.com
Subject: Re: BUG #13188: .pgpass does not work
In-Reply-To: <20150428181007.2546.64960@wrigleys.postgresql.org>
References: <20150428181007.2546.64960@wrigleys.postgresql.org>
* 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