Re: about .pgpass

From: Bastiaan Olij <bastiaan(at)basenlily(dot)me>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: about .pgpass
Date: 2013-04-02 12:48:58
Message-ID: 515AD3BA.5070800@basenlily.me
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Heya,

On 27/03/13 11:44 PM, kobolds wrote:
> Hi ,
>
> I have question about.pgpass . I have been playing around with postgresql
> privileges setting . I created a role user1 (not superuser) for the testing
> . today with this role I can login to the database in which I have grant
> without need enter password .

To my knowledge postgres never writes into pgpass. It is only when you
logon with pgAdmin and tick the 'remember passwords' tickbox that the
password gets written into the pgpass file. Did you try and log on with
that user at some point in time using pgAdmin?

Other then that, try adding the switch -w to the psql command:
psql -d db1 -h 192.168.56.200 -U user1 -w

The -w should force psql to not send a password even if one is included
in pgpass.

Cheers,

Bas

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Thangalin 2013-04-02 20:50:36 Re: Cannot create perlplu function
Previous Message Henrik Aagaard Sørensen 2013-04-02 08:42:48 Implementing SCD Type 2.