pg_dump is ignoring my pgpass file - Mailing list pgsql-general

From Luca Ferrari
Subject pg_dump is ignoring my pgpass file
Date
Msg-id 200810201740.58028.fluca1978@infinito.it
Whole thread Raw
Responses Re: pg_dump is ignoring my pgpass file
List pgsql-general
Hi all,
I'm running 8.2.9, and I've got a curious problem on a database of my cluster.
I've got my pgpass file:

backup@backup:~$ cat ~/.pgpass
192.168.1.2:5432:raydb:ray:xxxxxxx
192.168.1.2:5432:hrpmdb:hrpm:xxxxx
192.168.1.2:5432:vatcontrollerdb:vatcontroller:xxxxxx

and if I connect from the command line to any database I'm not prompted for a
password. But if I try to execute the following:

pg_dump --create --column-inserts -v -f raydb_ott_20_08.sql  -U ray -h
sedeldap  raydb

I'm prompted for a password immediatly. But if I execute the same command with
another database (and another user) I'm not prompted for a password at all.
I've checked and the ray user is also owner of the raydb.....any idea on what
I'm missing?

Thanks,
Luca



pgsql-general by date:

Previous
From: Martin Gainty
Date:
Subject: Re: Annoying Reply-To
Next
From: Teodor Sigaev
Date:
Subject: Re: index scan leads to result that is different from sec scan after upgrading to 8.3.4