Re: global barrier & atomics in signal handlers (Re: Atomicoperations within spinlocks)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: global barrier & atomics in signal handlers (Re: Atomicoperations within spinlocks)
Дата
Msg-id CA+TgmoZWTOcr8wZo6L-sbHwArTUUsYKzjzyyh=fSGOb3vkFF+g@mail.gmail.com
обсуждение исходный текст
Ответ на global barrier & atomics in signal handlers (Re: Atomic operationswithin spinlocks)  (Andres Freund <andres@anarazel.de>)
Ответы Re: global barrier & atomics in signal handlers (Re: Atomicoperations within spinlocks)  (Andres Freund <andres@anarazel.de>)
Re: global barrier & atomics in signal handlers (Re: Atomicoperations within spinlocks)  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Tue, Jun 9, 2020 at 3:37 PM Andres Freund <andres@anarazel.de> wrote:
> Hm. Looking at this again, perhaps the better fix would be to simply not
> look at the concrete values of the barrier inside the signal handler?
> E.g. we could have a new PROCSIG_GLOBAL_BARRIER, which just triggers
> ProcSignalBarrierPending to be set. And then have
> ProcessProcSignalBarrier do the check that's currently in
> CheckProcSignalBarrier()?

That seems like a good idea.

Also, I wonder if someone would be willing to set up a BF animal for this.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Andrew Gierth
Дата:
Сообщение: Re: Speedup usages of pg_*toa() functions
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Why is pq_begintypsend so slow?