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

From Andrej Czapszys
Subject Re: PGPASSWORD and client tools
Date
Msg-id 41242A14.1000204@comcast.net
Whole thread Raw
In response to Re: PGPASSWORD and client tools  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:

> 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.
>
>  
>
Another possibility would be to add a switch like --password-fd=n 
indicating an inherited file descriptor from which the password could be 
read.  That's not any easier than dynamic .pgpass, but it avoids
all filesystem permissions issues.



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: $libdir and 8.0
Next
From: Robert Treat
Date:
Subject: Re: tablespace and sequences?