From: | Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com> |
---|---|
To: | Nathan Bossart <nathandbossart(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 06:23:50 |
Message-ID: | aH8udkgd9ayg/EKW@ip-10-97-1-34.eu-west-3.compute.internal |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
On Mon, Jul 21, 2025 at 03:20:55PM -0500, Nathan Bossart wrote:
> 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?
I was not sure we'd want add a new file or add those in lwlocklist.h (in which
case 2 macros would have been simpler). As it looks like we are going with a
new file then yeah we can reuse PG_LWLOCK: done in v2 just shared up-thread.
> > + # 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?
Sure, done in v2 too.
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2025-07-22 06:24:10 | Re: Log prefix missing for subscriber log messages received from publisher |
Previous Message | Bertrand Drouvot | 2025-07-22 06:20:13 | Re: Verify predefined LWLocks tranches have entries in wait_event_names.txt |