Re: HandleParallelMessages contains CHECK_FOR_INTERRUPTS?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: HandleParallelMessages contains CHECK_FOR_INTERRUPTS?
Дата
Msg-id 20160801202058.GA529842@alvherre.pgsql
обсуждение исходный текст
Ответ на HandleParallelMessages contains CHECK_FOR_INTERRUPTS?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: HandleParallelMessages contains CHECK_FOR_INTERRUPTS?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> $SUBJECT seems like a pretty bad idea, because it implies a recursive
> entry to ProcessInterrupts and thence to HandleParallelMessages itself.
> By what reasoning is that call necessary where it's placed?

I notice you just removed the CHECK_FOR_INTERRUPTS in
HandleParallelMessages().  Did you notice that HandleParallelMessages
calls shm_mq_receive(), which calls shm_mq_receive_bytes(), which
contains a CHECK_FOR_INTERRUPTS() call?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: PostmasterContext survives into parallel workers!?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: New version numbering practices