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

From Nathan Bossart
Subject Re: Using defines for protocol characters
Date
Msg-id 20230815040727.GA2294364@nathanxps13
Whole thread Raw
In response to Re: Using defines for protocol characters  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Responses Re: Using defines for protocol characters
List pgsql-hackers
I tried to address all the feedback in v5 of the patch, which is attached.
I limited the patch to only the characters that have names in the "Message
Formats" section of protocol.sgml instead of trying to invent names for
unnamed characters.

I'm aware of one inconsistency.  While I grouped all the authentication
request messages ('R') into PqMsg_AuthenticationRequest, I added separate
macros for all the different meanings of 'p', i.e., GSSResponse,
PasswordMessage, SASLInitialResponse, and SASLResponse.  I wanted to list
everything in protocol.sgml (even the duplicateѕ) to ease greppability, but
the code is structure such that adding macros for all the different
authentication messages would be kind of pointless.  Plus, there is a
separate set of authentication request codes just below the added macros.
So, this is where I landed...

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com

Attachment

pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Re: Extract numeric filed in JSONB more effectively
Next
From: Nathan Bossart
Date:
Subject: Re: [PATCH] Add function to_oct