forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6991e77
committed
Provide feature-test macros for libpq features added in v14.
We had a request to provide a way to test at compile time for theavailability of the new pipeline features. More generally, itseems like a good idea to provide a way to test via #ifdef forall new libpq API features. People have been using the versionfrom pg_config.h for that; but that's more likely to represent theserver version than the libpq version, in the increasingly-commonscenario where they're different. It's safer if libpq-fe.h itselfis the source of truth about what features it offers.Hence, establish a policy that starting in v14 we'll add a suitablefeature-is-present macro to libpq-fe.h when we add new API there.(There doesn't seem to be much point in applying this policyretroactively, but it's not too late for v14.)Tom Lane and Alvaro Herrera, per suggestion from Boris Kolpackov.Discussion:https://postgr.es/m/boris.20210617102439@codesynthesis.com1 parent2731ce1 commit6991e77
1 file changed
+11
-2
lines changedLines changed: 11 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 |
| |
32 | 41 |
| |
33 | 42 |
| |
| |||
98 | 107 |
| |
99 | 108 |
| |
100 | 109 |
| |
101 |
| - | |
| 110 | + | |
102 | 111 |
| |
103 | 112 |
| |
104 | 113 |
| |
| |||
398 | 407 |
| |
399 | 408 |
| |
400 | 409 |
| |
401 |
| - | |
| 410 | + | |
402 | 411 |
| |
403 | 412 |
| |
404 | 413 |
| |
|
0 commit comments
Comments
(0)