Re: Considering signal handling in plpython again

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Considering signal handling in plpython again
Дата
Msg-id 974B452F-601D-401F-87FF-B02B8250588F@iki.fi
обсуждение исходный текст
Ответ на Re: Considering signal handling in plpython again  (Hubert Zhang <hzhang@pivotal.io>)
Ответы Re: Considering signal handling in plpython again  (Hubert Zhang <hzhang@pivotal.io>)
Список pgsql-hackers

On 11 May 2018 10:01:56 EEST, Hubert Zhang <hzhang@pivotal.io> wrote:
>2. Add a flag in hook function to indicate whether to call
>Py_AddPendingCall.
>This is straightforward.(I prefer it)

Yeah, that's what I had in mind, too. A global bool variable that's set when you enter libpython, and cleared on
return.Need to handle nesting, i.e if a PL/python function runs a slow query with SPI, and cancellation happens during
that.And the case that the SPI query calls another PL/python function. 

- Heikki


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

Предыдущее
От: Hartmut Holzgraefe
Дата:
Сообщение: Re: Having query cache in core
Следующее
От: Mike Blackwell
Дата:
Сообщение: perlcritic: Missing "return"