model-writtenrun 8574 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- John Naylor proposed removing trailing semicolons from do-while macro definitions because an additional semicolon at the invocation makes them multiple statements and can break conditional usage #1.
- Tom Lane considered these actual bugs potentially worth backpatching, and Bruce Momjian agreed that the semicolons could cause bugs #2 #3; David Steele subsequently expressed approval without detailed review comments #4.
- Tom Lane committed all of John Naylor’s changes together with additional macro fixes as 0da06d9faf, broadening the cleanup beyond do-while macros and backpatching the relevant changes; he left flex-generated scanners and upstream-generated ppport.h untouched #5.
- Oleksandr Shulgin asked whether linters could detect this pattern #6, and Jesse Zhang asked how the broader search worked #7; Tom Lane explained that a small Perl script tracked macro definitions and detected their trailing semicolons #8.
- Andrew Dunstan investigated refreshing ppport.h and reported that the Perl 5.30.2 version compiled and passed tests, but questioned the benefit without a need for newer Perl APIs #9 #10.
- Tom Lane identified the offending ppport.h macros and observed that PostgreSQL was unlikely to use them directly #11; Andrew Dunstan confirmed that the newer header retained those same patterns #12.
- David Steele described successful use of current ppport.h versions in pgBackRest #13, but Andrew Dunstan concluded that stable PL/Perl did not need continual header updates #14; the macro cleanup had landed, with no ppport.h update submitted in this thread.