Orphaned wait event

Thomas Munro <thomas.munro@gmail.com>

From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2023-03-23T02:12:21Z
Lists: pgsql-hackers

Attachments

Hi,

Commit dee663f7 made WAIT_EVENT_SLRU_FLUSH_SYNC redundant, so here's a
patch to remove it.

In case it's useful again, here's how I noticed:

for X in ` grep WAIT_EVENT_ src/include/utils/wait_event.h |
           sed '/^#/d;s/,//;s/ = .*//' `
do
  if ! ( git grep $X |
         grep -v src/include/utils/wait_event.h |
         grep -v src/backend/utils/activity/wait_event.c |
         grep $X > /dev/null )
  then
    echo "$X is not used"
  fi
done

Commits

  1. Re-add tracking of wait event SLRUFlushSync

  2. Defer flushing of SLRU files.