Re: supplying password to psql on command line?

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
Cc: medi(dot)montaseri(at)intransa(dot)com, pgsql-general(at)postgresql(dot)org, stan(at)morgan(dot)harvard(dot)edu
Subject: Re: supplying password to psql on command line?
Date: 2002-10-29 14:56:51
Message-ID: 20021029145651.GC2042@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 29, 2002 at 08:52:12AM +0100, Christoph Dalitz wrote:
>
> > Date: Mon, 28 Oct 2002 10:56:32 -0800
> > From: Medi Montaseri <medi(dot)montaseri(at)intransa(dot)com>
> >
> > I think Font ends are moving away from this approach as others can see
> > your supplied
> > passwd by a simple ps(1) command.

> Unfortunately this does *not* work with psql because for some strange reason
> psql does not read the password from stdin.

You can always use PGPASSWORD. And for those of you that find that
envvar insecure or cumbersome, there's a new ~/.pgpass where you can
store passwords in 7.3.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Y dijo Dios: "Que sea Satanás, para que la gente no me culpe de todo a mí."
"Y que hayan abogados, para que la gente no culpe de todo a Satanás"

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Shaunn 2002-10-29 15:24:48 ps_dump -a
Previous Message Shridhar Daithankar 2002-10-29 14:03:03 Re: ONE MORE PERFORMANCE ISSUE WITH POSTGRES