model-writtenrun 4744 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Andres Freund reported that pgindent removed continuation indentation from variable initializers, unlike ordinary assignments, and demonstrated that even a simple integer initializer reproduced the problem #1 #3.
- Tom Lane supported fixing the formatter and explained that reindenting stable branches was unnecessary and would burden people maintaining forks #2 #4.
- Andres also reported awkward formatting of a returned compound literal, but the thread supplied no fix for that separate case #5.
- Thomas Munro traced the initializer problem to declaration handling in io.c and proposed an inline adjustment, while noting that broadly enabling continuation indentation disrupted comma-separated declarations and caused other collateral changes #7.
- Tom turned that investigation into an attached patch using block_init and block_init_level to indent initialization expressions only outside braces, supplying a tree-wide formatting comparison to demonstrate its effects #8.
- Andres Freund, Thomas Munro, and Andrew Dunstan welcomed the patch; Andrew suggested relocating some casts, but Tom explained that choosing code line breaks should remain a human decision #9 #10 #11 #12.
- After pg_bsd_indent moved into the PostgreSQL tree, Tom reposted the same logic with updated paths and version numbers; the thread ended with this patch awaiting the March CommitFest #13.
- Tom subsequently committed that final patch unchanged on April 8, after the last PostgreSQL 16 CommitFest, crediting Thomas Munro and himself for the initializer indentation fix #13 064750af4f.