Re: PGPASSWORD and client tools - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PGPASSWORD and client tools
Date
Msg-id 6839.1092879757@sss.pgh.pa.us
Whole thread Raw
In response to Re: PGPASSWORD and client tools  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: PGPASSWORD and client tools
Re: PGPASSWORD and client tools
Re: PGPASSWORD and client tools
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
>> After some tests, I found that using the PGPASSWORD environment variable 
>> will do the job. I'm a bit irritated that it's marked "deprecated" in 
>> the docs, the .pgpass solution isn't a good one for tool managed passwords.

> I didn't notice it was deprecated either - it's the only way that 
> phpPgAdmin can integrate with pg_dump...

It's deprecated because it's insecure, on platforms where other users can
see the environment variables passed to pg_dump (which apparently is
quite a few variants of Unix).  You wouldn't pass the password on the
command line either ...

Painful as .pgpass may be for an admin tool, I do not know of any other
method I'd recommend on a multiuser machine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: tablespace and sequences?
Next
From: Bruce Momjian
Date:
Subject: Re: pg_dump 'die_on_errors'