Re: pg_hba.conf, md5 and .pgpass

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mick McElarney" <Mick(dot)McElarney(at)maxsp(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg_hba.conf, md5 and .pgpass
Date: 2007-02-06 05:18:05
Message-ID: 29714.1170739085@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Mick McElarney" <Mick(dot)McElarney(at)maxsp(dot)com> writes:
> What should I change so that it reads my /home/postgres/.pgpass file
> when I execute a psql -Upostgres databasename?

When you're logged in as somebody besides postgres, you mean? It can't
do that, and it'd be a huge security hole if it could.

You can, however, have it read your *own* .pgpass file for an entry
giving the postgres password.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2007-02-06 05:21:37 Re: is there more documentation?
Previous Message Jasbinder Singh Bali 2007-02-06 03:42:33 Re: Stored Procedure to return a result set