Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
Date
Msg-id aH7x879y-C3fNMAq@paquier.xyz
Whole thread Raw
In response to Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt  (Nathan Bossart <nathandbossart@gmail.com>)
List pgsql-hackers
On Mon, Jul 21, 2025 at 08:34:41PM -0500, Nathan Bossart wrote:
> I bet we could maintain a decent level of readability with some extra
> commentary.  IMHO it's worth it to avoid maintaining duplicate lists.  But
> that's not something I feel terribly strong about, if others disagree.
> FWIW I was imagining something like this:
>
>     typedef enum BuiltinTrancheIds
>     {
>         LWTRANCHE_INVALID = NUM_INDIVIDUAL_LWLOCKS - 1,

Something like that would be OK for me.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions
Next
From: Nathan Bossart
Date:
Subject: Re: teach pg_upgrade to handle in-place tablespaces