model-writtenrun 6403 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Boris Kolpackov requested a compile-time libpq version macro so applications could conditionally use pipeline mode without depending on pg_config.h, whose availability and namespace pollution were concerns #1.
- Tom Lane proposed LIBPQ_HAS_PIPELINING instead of a version number, emphasizing that server and libpq versions can differ; Daniel Gustafsson supported feature-based detection #2 #4 #5.
- Robert Haas questioned whether feature macros would be maintained consistently, while Andres Freund explored exposing version information through pg_config_ext.h; Tom favored keeping feature detection directly in libpq-fe.h to avoid packaging and version ambiguity #6 #7 #9 #10 #13 #14.
- Dagfinn Ilmari Mannsåker and Justin Pryzby supplied examples of clients already deriving feature availability from pg_config --version; Boris also wanted version information for bug workarounds, but Tom argued that runtime PQlibVersion() was appropriate for those checks #11 #12 #15 #16.
- Alvaro Herrera supported maintaining feature macros given the small number of libpq additions, and Tom posted a patch defining LIBPQ_HAS_PIPELINING and LIBPQ_HAS_TRACE_FLAGS and removing an enum's trailing comma for compiler compatibility #17 #18.
- Alvaro approved the patch and supplied brief comments identifying the APIs covered by each macro; Tom accepted these header annotations instead of adding SGML documentation #19 #20.
- Tom committed the attached patch with the explanatory comments and a minor punctuation adjustment as 6991e774e0, establishing feature-test macros for new libpq APIs starting with PostgreSQL 14, and announced completion #21.
- After the commit, Robert renewed the concern about forgetting future macros; Daniel suggested a release checklist, Tom considered RELEASE_CHANGES, and Andrew Dunstan favored checking during release-note preparation, leaving the maintenance-process question unresolved while the code was already committed #22 #23 #24 #25 #26.