Re: lwlocknames.h beautification attempt - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: lwlocknames.h beautification attempt
Date
Msg-id 202503141938.rneup53jn4cc@alvherre.pgsql
Whole thread Raw
In response to lwlocknames.h beautification attempt  (Gurjeet Singh <gurjeet@singh.im>)
Responses Re: lwlocknames.h beautification attempt
List pgsql-hackers
On 2025-Mar-01, Gurjeet Singh wrote:

> I propose the following change to the generation script,
> generate-lwlocknames.pl
> 
> -    print $h "#define ${lockname}Lock (&MainLWLockArray[$lockidx].lock)\n";
> +    printf $h "#define %-30s %s\n", "${lockname}Lock",
> "(&MainLWLockArray[$lockidx].lock)";

I forgot to send a note here that I pushed this patch.  Thank you.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
[…] indem ich in meinem Leben oft an euch gedacht, euch glücklich zu machen. Seyd es!
A menudo he pensado en vosotros, en haceros felices. ¡Sedlo, pues!
        Heiligenstädter Testament, L. v. Beethoven, 1802
        https://de.wikisource.org/wiki/Heiligenstädter_Testament



pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: vacuumdb changes for stats import/export
Next
From: Andres Freund
Date:
Subject: Re: AIO v2.5