Re: psql and passwords
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Devogelaere <michael@mind.be>
Cc: pgsql-general@postgresql.org
Date: 2002-04-15T18:52:25Z
Lists: pgsql-general
Michael Devogelaere <michael@mind.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