Re: psql and passwords

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Devogelaere <michael(at)mind(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: psql and passwords
Date: 2002-04-15 18:52:25
Message-ID: 25452.1018896745@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Michael Devogelaere <michael(at)mind(dot)be> writes:
> With the previous version, i passed the password with
> 'echo pass | psql -d db -U user -h server -c "..."'
> but that doesn't seem to work anymore (because it reads the password now
> from /dev/tty instead of stdin i guess).

This was a deliberate change (some of us had misgivings about it but
were voted down).

I'd suggest seeing if you can't avoid needing passwords anymore,
instead. "ident" auth works over local connections now (at least
on some platforms, including recent Linuxen).

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gunther Schadow 2002-04-15 18:58:19 Re: User-Defined Datatypes
Previous Message Bruno Wolff III 2002-04-15 18:49:49 Re: function for creating random id