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

From Alvaro Herrera
Subject Re: Using defines for protocol characters
Date
Msg-id 20230815214007.ptksp5nmtwt3yrjn@alvherre.pgsql
Whole thread Raw
In response to Re: Using defines for protocol characters  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Using defines for protocol characters
List 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 by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Using defines for protocol characters
Next
From: Tatsuo Ishii
Date:
Subject: Re: Using defines for protocol characters