Re: proposal: alternative psql commands quit and exit

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: proposal: alternative psql commands quit and exit
Дата
Msg-id CAEzk6ff5nT8nT5QE2Kn=AFZFA=S81b7yC=ukFuSRuDJXu87Z4Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: alternative psql commands quit and exit  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: proposal: alternative psql commands quit and exit
Re: proposal: alternative psql commands quit and exit
Список pgsql-hackers
On 15 January 2018 at 16:48, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Geoff Winkless <pgsqladmin@geoff.dj> writes:
>> Perhaps different messages on different OSes? :)
>
> It's worse than that: the EOF key is configurable.  In principle we
> could look into the tty settings and print the right thing, but
> I doubt we want to go there, especially if there's no corresponding
> thing on Windows.

But surely if Windows always exits using Ctrl-C than that's easiest?

And while trying to find the EOF setting in libreadline might get
messy, you're already assuming that ctrl-C hasn't been knobbled using
stty intr. Unless you want to go searching for that too?

Geoff


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

Предыдущее
От: Julian Markwort
Дата:
Сообщение: Re: [HACKERS] [FEATURE PATCH] pg_stat_statements with plans (v02)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: proposal: alternative psql commands quit and exit