Re: Wait events for delayed checkpoints - Mailing list pgsql-hackers

From Thomas Munro
Subject Re: Wait events for delayed checkpoints
Date
Msg-id CA+hUKGLHR69zfR0dYmtcy78b1Aibck0km=6Ns284i2i+2Qf5Rw@mail.gmail.com
Whole thread Raw
In response to Re: Wait events for delayed checkpoints  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Fri, Oct 13, 2023 at 2:19 PM Robert Haas <robertmhaas@gmail.com> wrote:
> On Thu, Oct 12, 2023 at 7:09 PM Michael Paquier <michael@paquier.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.



pgsql-hackers by date:

Previous
From: Peter Smith
Date:
Subject: Re: PGDOCS - add more links in the pub/sub reference pages
Next
From: Amit Kapila
Date:
Subject: Re: pg_upgrade's interaction with pg_resetwal seems confusing