Re: Feature-test macros for new-in-v17 libpq features
Jacob Champion <jacob.champion@enterprisedb.com>
From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2024-08-22T17:22:47Z
Lists: pgsql-hackers
On Thu, Aug 22, 2024 at 10:16 AM Tom Lane <tgl@sss.pgh.pa.us> wrote: > > In connection with that last point, I wonder if we should include > commentary about when things came in. I'd originally thought of > just inserting the above names in alphabetical order, but now I > wonder if the patch ought to look more like > > */ > +/* Features added in PostgreSQL v14: */ > /* Indicates presence of PQenterPipelineMode and friends */ > #define LIBPQ_HAS_PIPELINING 1 > /* Indicates presence of PQsetTraceFlags; also new PQtrace output format */ > #define LIBPQ_HAS_TRACE_FLAGS 1 > +/* Features added in PostgreSQL v15: */ > /* Indicates that PQsslAttribute(NULL, "library") is useful */ > #define LIBPQ_HAS_SSL_LIBRARY_DETECTION 1 > +/* Features added in PostgreSQL v17: */ > + ... as above ... +1, I like the new headers and keeping the version order. Thanks! --Jacob
Commits
-
Provide feature-test macros for libpq features added in v17.
- ff59d5d2cff3 18.0 landed
- 79c3012dc231 17.0 landed
-
Provide feature-test macros for libpq features added in v14.
- 6991e774e030 14.0 cited