From: | Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Orphaned wait event |
Date: | 2023-03-23 07:10:34 |
Message-ID: | CALj2ACVY3eA261mUDO8xcMJGDwj_OHpaxEUMc5L9jxkj3fvcpg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Mar 23, 2023 at 7:43 AM Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>
> Hi,
>
> Commit dee663f7 made WAIT_EVENT_SLRU_FLUSH_SYNC redundant, so here's a
> patch to remove it.
Yeah, commit [1] removed the last trace of it. I wonder if we can add
a WAIT_EVENT_SLRU_FLUSH_SYNC wait event in SlruSyncFileTag(), similar
to mdsyncfiletag. This way, we would have covered all sync_syncfiletag
fsyncs with wait events.
> 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
Interesting. It might be an overkill to think of placing it as a
compile-time script to catch similar miss-outs in future.
[1]
commit dee663f7843902535a15ae366cede8b4089f1144
Author: Thomas Munro <tmunro(at)postgresql(dot)org>
Date: Fri Sep 25 18:49:43 2020 +1200
Defer flushing of SLRU files.
--
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | Brar Piening | 2023-03-23 07:24:48 | Re: doc: add missing "id" attributes to extension packaging page |
Previous Message | Drouvot, Bertrand | 2023-03-23 06:51:37 | Re: Remove nonmeaningful prefixes in PgStat_* fields |