Re: psql: default base and password reading

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: psql: default base and password reading
Дата
Msg-id Pine.LNX.4.30.0110122204290.648-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: psql: default base and password reading  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql: default base and password reading  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Tom Lane writes:

> > 2. Password is reading from terminal (/dev/tty) rather than from
> > stdin.
>
> Hmm, that might be a good idea.  Comments anyone?

I guarantee you that within 24 hours after such a patch were checked in
someone's going to complain that he has no /dev/tty.

Meanwhile, there are a couple of possible workarounds:

* PGPASSWORD environment variable.

* FIFOs

* (echo "Password"; pipe_input) | psql

A generalized option to read the password from any file might make sense,
though.

--
Peter Eisentraut   peter_e@gmx.net   http://funkturm.homeip.net/~peter


В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: psql: default base and password reading
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Showing index details with \d on psql