Re: psql: default base and password reading

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: psql: default base and password reading
Дата
Msg-id 200110151641.f9FGf6G02786@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: psql: default base and password reading  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-patches
> Bruce Momjian writes:
>
> > Have you seen my later version that reads from stdin/stderr if /dev/tty
> > doesn't open.  How is that?
>
> Might as well use getpass() if available.  My man page says "A getpass
> function appeared in Version 7 AT&T UNIX.", so it should be available on
> most systems.
>
> However, I'm afraid many users have set up their systems to read the
> password from stdin, so that should probably stay the default unless we
> take a user poll.

OK, seeing only positive reports, I have committed the patch to
display/prompt from /dev/tty and fall back to stdin/stderr.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Showing index details with \d on psql
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Re: IPv6 Support for INET/CIDR types.