Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
Date: 2025-07-22 19:25:13
Message-ID: aH_lmasa94qmUxSG@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
v3-0001-Cross-check-lists-of-built-in-LWLock-tranches.patch text/plain 14.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Corey Huinker 2025-07-22 19:42:42 Re: [PATCH] Use strchr() to search for a single character
Previous Message DINESH NAIR 2025-07-22 19:07:57 Re: Support getrandom() for pg_strong_random() source