Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Nathan Bossart <nathandbossart@gmail.com>
Cc: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-22T02:05:39Z
Lists: 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
Commits
-
Cross-check lists of built-in LWLock tranches.
- 2047ad068139 19 (unreleased) landed
-
Remove unused variable in generate-lwlocknames.pl.
- 84409ed64056 19 (unreleased) landed
-
Rework lwlocknames.txt to become lwlocklist.h
- da952b415f44 17.0 cited