Thread: pgsql: Provide feature-test macros for libpq features added in v17.

pgsql: Provide feature-test macros for libpq features added in v17.

From
Tom Lane
Date:
Provide feature-test macros for libpq features added in v17.

As per the policy established in commit 6991e774e, invent macros
that can be tested at compile time to detect presence of new libpq
features.  This should make calling code more readable and less
error-prone than checking the libpq version would be (especially
since we don't expose that at compile time; the server version is
an unreliable substitute).

Discussion: https://postgr.es/m/2042418.1724346970@sss.pgh.pa.us

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/79c3012dc2311bdaa4bb135d871d16f103a62966

Modified Files
--------------
src/interfaces/libpq/libpq-fe.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)