Re: longjmp in psql considered harmful

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: longjmp in psql considered harmful
Дата
Msg-id 20060611191935.GD20757@svana.org
обсуждение исходный текст
Ответ на Re: longjmp in psql considered harmful  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: longjmp in psql considered harmful
Re: longjmp in psql considered harmful
Список pgsql-hackers
On Sun, Jun 11, 2006 at 02:57:38PM -0400, Tom Lane wrote:
> Martijn van Oosterhout <kleptog@svana.org> writes:
> > As it states in the comment, you can't remove the longjump because
> > it's the only way to break out of the read() call when using BSD signal
> > semantics (unless you're proposing non-blocking read+select()). So the
> > patch sets up the sigjump just before the read() and allows the routine
> > to return. If you're not waiting for read(), no sigjump is done.
>
> I think you're missing my point, which is: do we need control-C to
> force a break out of that fgets at all?

If you're asking me, yes. I use it a lot and would miss it if it were
gone. Is there another shortcut for "abort current command and don't
store in history but don't clear it from the screen"?

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pl/tcl regression failed
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: longjmp in psql considered harmful