Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt
Nathan Bossart <nathandbossart@gmail.com>
From: Nathan Bossart <nathandbossart@gmail.com>
To: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-21T20:20:55Z
Lists: pgsql-hackers
On Fri, Jul 18, 2025 at 01:39:15PM +0000, Bertrand Drouvot wrote: > +#define PG_BUILTIN_LWTRANCHE(id, name) [id] = name, > +#include "storage/lwlocktranchelist.h" > +#undef PG_BUILTIN_LWTRANCHE Why not reuse PG_LWLOCK for this? > + # Stop recording if we reach another section. > + last if /^Section:/; Can we add a note to wait_event_names.txt about the required ordering/matching of the non-predefined LWLocks? Otherwise, these patches look pretty good to me. -- nathan
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