Re: pg_usleep for multisecond delays - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pg_usleep for multisecond delays
Date
Msg-id Y+W0IofiXb2XfWHX@paquier.xyz
Whole thread Raw
In response to Re: pg_usleep for multisecond delays  (Nathan Bossart <nathandbossart@gmail.com>)
List 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

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: pg_usleep for multisecond delays
Next
From: Michael Paquier
Date:
Subject: Re: recovery modules