model-writtenrun 3307 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Sutou Kouhei proposed explicitly exporting -Wformat from Meson builds because extensions using pg_config --cflags received -Wformat-security without its prerequisite and triggered GCC warnings #1.
- Tristan Partin confirmed the issue and supplied a revision extending the explicit -Wformat fix to Autoconf #3; Michael Paquier questioned its reproducibility and warning implications #4, and Sutou supplied results showing the warning on Debian and AlmaLinux but different defaults on Ubuntu #5.
- Tristan explained that PostgreSQL's own -Wall masked the missing exported flag #6 and proposed explanatory comments #8, which Sutou incorporated into the next patch #9.
- Peter Eisentraut identified the broader problem: Meson's implicit -Wall, debug and optimization flags were missing from Makefile.global and pg_config #10; Sutou replaced the narrow -Wformat fix with reconstruction and export of those flags for C and C++ #11.
- Andres Freund objected to unnecessary MSVC probes and warning levels that would produce excessive warnings #12, so Sutou removed those cases while retaining the new export mechanism #13.
- Peter requested always exporting just -Wall and approved the debug and optimization handling #14; Sutou implemented that simplification in the final submission #15.
- Peter approved the final patch and advocated backpatching because existing Meson installations otherwise produced suboptimal PGXS extension builds #16.
- Peter committed #15 as 3482bab5e3, with only block placement, comments and commit-message edits, and announced completion in #17; the supplied candidate records no backports.