Re: Using defines for protocol characters

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Using defines for protocol characters
Дата
Msg-id 20230815040727.GA2294364@nathanxps13
обсуждение исходный текст
Ответ на Re: Using defines for protocol characters  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: Using defines for protocol characters  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andy Fan
Дата:
Сообщение: Re: Extract numeric filed in JSONB more effectively
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: [PATCH] Add function to_oct