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

From Nathan Bossart
Subject Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
Date
Msg-id aH_lmasa94qmUxSG@nathan
Whole thread Raw
In response to Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
Responses Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
List pgsql-hackers
On Tue, Jul 22, 2025 at 06:23:50AM +0000, Bertrand Drouvot wrote:
> Sure, done in v2 too.

I stared at this patch some more and came up with the attached.  The
biggest change is that I've moved the list of built-in LWLock tranches to
the existing lwlocklist.h file.  That simplifies the patch and centralizes
these lists.  This is arguably a bit too much preprocessor magic, though.
Thoughts?

-- 
nathan

Attachment

pgsql-hackers by date:

Previous
From: "DINESH NAIR"
Date:
Subject: Re: Support getrandom() for pg_strong_random() source
Next
From: Corey Huinker
Date:
Subject: Re: [PATCH] Use strchr() to search for a single character