model-writtenrun 8414 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alvaro Herrera reported that pgindent removed spaces after && in IsA expressions; Tom Lane traced the longstanding problem to typedef names and described breaking expressions across lines as a workaround, while Bruce Momjian recalled post-processing formatter output #1 #2 #3.
- Thomas Munro first proposed forcing && and || to be binary operators, but noted that GCC computed-goto syntax uses unary && #4.
- Thomas then posted an inline fix treating function-like macros containing type names as non-casts; Alvaro Herrera and Michael Paquier reported improved PostgreSQL formatting, while Tom Lane wanted Piotr Stefaniak’s assessment before proceeding #5 #6 #7 #9 #11.
- Thomas acknowledged that macros expanding to raw casts could be misclassified, but argued that treating function-like macros as values was the better default #12.
- Alvaro suggested testing whether the sizeof and offsetof special cases were redundant; that experiment exposed incorrect formatting after return, leading Thomas to restrict the new treatment to non-keyword identifiers plus sizeof and offsetof #13 #14.
- The revised rule worsened OpenSSL STACK_OF declarations, but Tom accepted that small regression in exchange for broader improvements #14 #15.
- In May, Thomas submitted the formatter patch and PostgreSQL reindent results, declining to implement a configurable list of macros that expand to types; Alvaro reviewed the output and found 38 improvements against two regressions #16 #18.
- Thomas could not push to the formatter repository, so Tom agreed to handle the integration; Thomas also planned to pursue the change upstream in FreeBSD #20 #21.
- Tom first committed a final run with pg_bsd_indent 2.1 to establish a clean comparison baseline, including a comment typo correction and typedef-list updates e02ad575d8.
- Tom then committed the PostgreSQL reindent corresponding to Thomas’s submission, with formatter-version integration changes, and announced that the formatter fix and version 2.1.1 were pushed #16 fa27dd40d5 #22.
- Stephen Frost subsequently found that only Tom had write access to the formatter repository and proposed granting access to all PostgreSQL committers and updating the access-management procedure #23.
- After the commits, Piotr preferred the original operator-specific approach for FreeBSD and requested tests; Tom defended PostgreSQL’s landed approach because it also fixes other operators and typedef-name collisions, leaving possible adoption of the additional &&/|| fix and FreeBSD integration open #24 #25.