Provide feature-test macros for libpq features added in v17.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Aug 2024 14:12:56 +0000 (10:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Aug 2024 14:12:56 +0000 (10:12 -0400)
commitff59d5d2cff32cfe88131f87b6c401970d449c08
tree7f894158e534bfba7194941741448ef72307be75
parenta2bbc58f743489784de797d81be37ea309cb0773
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
src/interfaces/libpq/libpq-fe.h