| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Provide feature-test macros for libpq features added in v17. |
| Date: | 2024-08-23 14:13:01 |
| Message-ID: | E1shV2D-0015m1-Lf@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ff59d5d2cff32cfe88131f87b6c401970d449c08
Modified Files
--------------
src/interfaces/libpq/libpq-fe.h | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2024-08-23 14:49:17 | Re: pgsql: Introduce hash_search_with_hash_value() function |
| Previous Message | Peter Eisentraut | 2024-08-23 05:47:25 | pgsql: thread-safety: gmtime_r(), localtime_r() |