Re: Using defines for protocol characters - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Using defines for protocol characters
Date
Msg-id 20230809170805.6ugrqutmg7qfmn22@alvherre.pgsql
Whole thread Raw
In response to Re: Using defines for protocol characters  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: Using defines for protocol characters
List pgsql-hackers
On 2023-Aug-09, Nathan Bossart wrote:

> On Wed, Aug 09, 2023 at 10:44:42AM -0600, Dave Cramer wrote:
> > On Wed, 9 Aug 2023 at 10:34, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> I agree with Peter: let's use the names in the protocol document
> >> with a single prefix.  I've got mixed feelings about whether that prefix
> >> should have an underscore, though.
> > 
> > Well, we're getting closer :)
> 
> I'm +0.5 for the underscore.

We use CamelCase_With_UnderScores in other places (PgStat_Counter,
AtEOXact_PgStat_Database).  It's not pretty, and at times it's not
comfortable to type, but I think it will be less ugly here than in those
other places (particularly because there'll be a single underscore), and
I also agree that readability is better with the underscore than
without.

So, I'm also +0.5 on having them, much as it displeases Robert.

-- 
Álvaro Herrera        Breisgau, Deutschland  —  https://www.EnterpriseDB.com/



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Use of additional index columns in rows filtering
Next
From: Alvaro Herrera
Date:
Subject: Re: Cirrus-ci is lowering free CI cycles - what to do with cfbot, etc?