pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Provide feature-test macros for libpq features added in v17.
Date: Fri, 23 Aug 2024 14:13:01 +0000
Message-ID: <E1shV2D-0015m2-M9@gemulon.postgresql.org> (raw)

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(-)



view thread (3+ messages)

Message-ID: <E1shV2D-0015m2-M9@gemulon.postgresql.org>
Permalink:  ../E1shV2D-0015m2-M9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1shV2D-0015m2-M9@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Provide feature-test macros for libpq features added in v17.
  In-Reply-To: <E1shV2D-0015m2-M9@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox