Re: pg_usleep for multisecond delays

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_usleep for multisecond delays
Дата
Msg-id Y+W0IofiXb2XfWHX@paquier.xyz
обсуждение исходный текст
Ответ на Re: pg_usleep for multisecond delays  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
On Thu, Feb 09, 2023 at 02:51:14PM -0800, Nathan Bossart wrote:
> Hm...  We might be able to use WaitLatch() for some of these.

Perhaps less than you think as a bit of work has been done in the last
few years to reduce the gap and make such code paths more responsive,
still I would not be surprised to find a couple of these..

I would let the portions of the code related to things like
pre_auth_delay or XLOG_REPLAY_DELAY as they are, though, without an
extra pg_Xsleep() implementation.
--
Michael

Вложения

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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: pg_usleep for multisecond delays
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: recovery modules