Re: psql and passwords
Curt Sampson <cjs@cynic.net>
From: Curt Sampson <cjs@cynic.net>
To: Doug McNaught <doug@wireboard.com>
Cc: "Nigel J. Andrews" <nandrews@investsystems.co.uk>, <pgsql-general@postgresql.org>
Date: 2002-04-16T03:32:43Z
Lists: 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