Avoid multiple SetLatch() calls in procsignal_sigusr1_handler()

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Avoid multiple SetLatch() calls in procsignal_sigusr1_handler()
Дата
Msg-id CALj2ACWd5apddj6Cd885WwJ6LquYu_G81C4GoR4xSoDV1x-FEA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Avoid multiple SetLatch() calls in procsignal_sigusr1_handler()  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Re: Avoid multiple SetLatch() calls in procsignal_sigusr1_handler()  ("Drouvot, Bertrand" <bertranddrouvot.pg@gmail.com>)
Список pgsql-hackers
Hi,

Most of the multiplexed SIGUSR1 handlers are setting latch explicitly
when the procsignal_sigusr1_handler() can do that for them at the end.
These multiplexed handlers are currently being used as SIGUSR1
handlers, not as independent handlers, so no problem if SetLatch() is
removed from them. A few others do it right by saying /* latch will be
set by procsignal_sigusr1_handler */. Although, calling SetLatch() in
quick succession does no harm (it just returns if the latch was
previously set), it seems unnecessary.

I'm attaching a patch that avoids multiple SetLatch() calls.

Thoughts?

--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Masahiko Sawada
Дата:
Сообщение: Re: [PoC] Improve dead tuple storage for lazy vacuum
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Maybe we can remove the type cast in typecache.c