Re: psql: default base and password reading

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: psql: default base and password reading
Дата
Msg-id 200110131604.f9DG4RR00454@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: psql: default base and password reading  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql: default base and password reading  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches
> >> In fact, I wonder if we should just fail if we need to prompt for a
> >> password and can't open /dev/tty.  The function is simple_prompt() and
> >> if we can't open /dev/tty, maybe we should just assume the user typed
> >> nothing.
>
> > Would be okay with me ...
>
> On second thought --- are we creating any portability problems if we
> assume /dev/tty exists?  In particular, what about the Windows port
> of psql?  Will it still work?

I am sure cygwin takes care of this.  Certainly is would have to handle
it to allow Unix compatibility.  If someone reports a problem, we can
#ifdef around it.

--
  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: psql: default base and password reading
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: psql: default base and password reading