On Fri, Oct 13, 2023 at 2:19 PM Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> On Thu, Oct 12, 2023 at 7:09 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> > HaveVirtualXIDsDelayingChkpt() does immediately a LWLockAcquire()
> > which would itself report a wait event for ProcArrayLock, overwriting
> > this new one, no?
>
> Ah, right: the wait event should be set and cleared around pg_usleep,
> not the whole loop.
Duh. Yeah. Pushed like that. Thanks both.