Re: psql and passwords - Mailing list pgsql-general

From Curt Sampson
Subject Re: psql and passwords
Date
Msg-id Pine.NEB.4.43.0204161231540.498-100000@angelic.cynic.net
Whole thread Raw
In response to Re: psql and passwords  (Doug McNaught <doug@wireboard.com>)
Responses Re: psql and passwords  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
On 15 Apr 2002, Doug McNaught wrote:

> "Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
>
> > Anyway, the solution is to set PGPASSWORD in the evironment. Once I
> > remembered about that it all became so much easier.
>
> Note that this is potentially insecure as some systems expose your
> environment to other users.

Indeed. What about adding an option whose argument is the name of
a file containing the password?

cjs
--
Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
    Don't you know, in this new Dark Age, we're all light.  --XTC


pgsql-general by date:

Previous
From: Curt Sampson
Date:
Subject: Re: Mass-Data question
Next
From: Bruce Momjian
Date:
Subject: Re: psql and passwords