Re: Orphaned wait event

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Cc: Thomas Munro <thomas.munro@gmail.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-04-25T21:34:13Z
Lists: pgsql-hackers
On Tue, Apr 25, 2023 at 09:24:58PM +0530, Bharath Rupireddy wrote:
> It looks like this patch attached upthread at [1] isn't in yet,
> meaning WAIT_EVENT_SLRU_FLUSH_SYNC stays unused. IMO, it's worth
> pushing it to the PG16 branch. It will help add a wait event for SLRU
> page flushes. Thoughts?
> 
> [1] https://www.postgresql.org/message-id/CA%2BhUKG%2BewEpxm%3DhPNXyupRUB_SKGh-6tO86viaco0g-P_pm_Cw%40mail.gmail.com

There could be the argument that some external code could abuse of
this value for its own needs, but I don't really buy that.  I'll go
clean up that..
--
Michael

Commits

  1. Re-add tracking of wait event SLRUFlushSync

  2. Defer flushing of SLRU files.