Re: [HACKERS] psql and Control-C

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема Re: [HACKERS] psql and Control-C
Дата
Msg-id 38AC8571.1306E0B8@nimrod.itg.telecom.com.au
обсуждение исходный текст
Ответ на psql and Control-C  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: [HACKERS] psql and Control-C  (Alfred Perlstein <bright@wintelcom.net>)
Re: [HACKERS] psql and Control-C  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut wrote:
> 
> Some people have indicated that they don't like how psql currently handles
> Control-C if no query is in progress. I consider the behaviour of the
> shells desirable but, quite frankly, I don't know how to do it.

The typical way to do this sort of thing is to longjmp back to the main
loop. And I think if you look at sig.c in bash, this is probably what
they are doing.

> Actually, shouldn't a Ctrl-C in a script cancel the query *and* stop the
> script at all times?

Yes.


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

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: [HACKERS] libpq
Следующее
От: "Herr Dumont"
Дата:
Сообщение: password change / table creation