Re: Using defines for protocol characters

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Using defines for protocol characters
Дата
Msg-id 20230815214007.ptksp5nmtwt3yrjn@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Using defines for protocol characters  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Using defines for protocol characters  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
On 2023-Aug-16, Michael Paquier wrote:

> On Wed, Aug 16, 2023 at 06:25:09AM +0900, Tatsuo Ishii wrote:
> > Currently pqcomm.h needs c.h which is not problem for Pgpool-II. But
> > what about other middleware?
> 
> Why do you need to include directly c.h?  There are definitions in
> there that are not intended to be exposed.

What this argument says is that these new defines should be in a
separate file, not in pqcomm.h.  IMO that makes sense, precisely because
these defines should be usable by third parties.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Using defines for protocol characters
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Using defines for protocol characters