Re: Using defines for protocol characters

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Using defines for protocol characters
Дата
Msg-id 20230815155802.GA2298234@nathanxps13
обсуждение исходный текст
Ответ на Re: Using defines for protocol characters  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Ответы Re: Using defines for protocol characters  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список pgsql-hackers
On Tue, Aug 15, 2023 at 02:46:24PM +0900, Tatsuo Ishii wrote:
> Is it possible to put the new define staff into protocol.h then let
> pqcomm.h include protocol.h? This makes Pgpool-II and other middle
> ware/drivers written in C easier to use the defines so that they only
> include protocol.h to use the defines.

It is possible, of course, but are there any reasons such programs couldn't
include pqcomm.h?  It looks relatively inexpensive to me.  That being said,
I'm fine with the approach you describe if the folks in this thread agree.

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



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

Предыдущее
От: Nathan Bossart
Дата:
Сообщение: Re: [PATCH] Add function to_oct
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Extending SMgrRelation lifetimes