Re: longjmp in psql considered harmful

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: longjmp in psql considered harmful
Дата
Msg-id 20060611175845.GA20757@svana.org
обсуждение исходный текст
Ответ на longjmp in psql considered harmful  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: longjmp in psql considered harmful  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Sun, Jun 11, 2006 at 12:32:22PM -0400, Tom Lane wrote:
> I think we should try very hard to get rid of the longjmp in the signal
> handler altogether.  I notice it doesn't work anyway in the Windows
> port, so this would improve portability as well as safety.  The signal
> handler should just set a flag that would be checked at safe points,
> much as we do in the backend.  (The bit about doing PQcancel can stay,
> though, since that's carefully designed to be signal-safe.)

I submitted a patch for this ages ago and AFAIK it's still in the
queue. Have you any issues with the way I did it there?

Have a ncie 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 по дате отправления:

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: [PATCHES] ADD/DROP INHERITS
Следующее
От: Tom Lane
Дата:
Сообщение: Re: longjmp in psql considered harmful