Re: Add version macro to libpq-fe.h

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvaro.herrera@2ndquadrant.com>
Cc: Boris Kolpackov <boris@codesynthesis.com>, pgsql-hackers@lists.postgresql.org
Date: 2021-06-18T17:44:33Z
Lists: pgsql-hackers

Attachments

Alvaro Herrera <alvaro.herrera@2ndquadrant.com> writes:
> So I'm +1 on adding this "feature macro".

Concretely, how about the attached?  (I also got rid of a recently-added
extra comma.  While the compilers we use might not warn about that,
it seems unwise to assume that no user's compiler will.)

I guess one unresolved question is whether we want to mention these in
the SGML docs.  I vote "no", because it'll raise the maintenance cost
noticeably.  But I can see an argument on the other side.

			regards, tom lane

Commits

  1. Provide feature-test macros for libpq features added in v14.

  2. Adjust batch size in postgres_fdw to not use too many parameters

  3. Arrange to strip libpq.so of symbols that aren't officially supposed to