Re: [HACKERS] psql and Control-C

Поиск
Список
Период
Сортировка
От Chris Bitmead
Тема Re: [HACKERS] psql and Control-C
Дата
Msg-id 38AC9F0D.4931DB92@nimrod.itg.telecom.com.au
обсуждение исходный текст
Ответ на psql and Control-C  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: [HACKERS] psql and Control-C
Список pgsql-hackers
Alfred Perlstein wrote:

> Whoa whoa... It's a bit more complicated than you think, there's a lot
> of state that gets put into libpq,

I don't think this has anything to do with libpq. This has got to do
with
psql's reading of commands _before_ they get shoved into libpq. As such
it shouldn't be that dangerous.

> i guess the simplest way would be
> to do so and also cancel the transaction, but a simple longjump won't
> work reliably and you'd also have to take very careful steps to make
> sure you handle everything _just right_ from a signal context.
> 
> I'd rather have the inconvience of psql exiting than a not entirely
> thought out mechanism for doing this properly potentially having psql
> run amok on my database. :)
> 
> --
> -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> 
> ************


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

Предыдущее
От: Chris Bitmead
Дата:
Сообщение: Re: [HACKERS] psql and Control-C
Следующее
От: Alfred Perlstein
Дата:
Сообщение: Re: [HACKERS] psql and Control-C