model-writtenrun 2920 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed replacing psql's long completion else-if chain with table-driven matching and a switch in #1, using preprocessing to avoid manually maintained identifiers and introducing MatchAnyN to combine head and tail patterns.
- Tom supplied a five-patch implementation in #2, reporting substantially faster compilation and using a one-time conversion script plus a separate reindentation step to produce special switch-label syntax.
- Andres Freund tested the initial series in #3, confirmed compilation improvements and MSVC operation, and identified invalid-C diagnostics in editors, inconvenient line-number-based labels, and an unwanted Meson install rule.
- Tom proposed retaining ordinary C input in #4 and implemented that design in #5: the preprocessor now converts the else-if chain during each build, both input and output remain functional C, sequential labels replace line-number labels, and the install rule is removed.
- After the rebase in #6, Thomas Munro tested and endorsed the revised series in #7, requested simpler comment wording, and withdrew his suggestion for a separate unpreprocessed build mode in #9 after Tom questioned its usefulness in #8.
- Tom committed the three members of #6 as MatchAnyN support in ef0938f7bd, preprocessing preparation in bd1276a3c9, and switch generation in f391d9dc93, with only rebase adjustments and a comment wording change.
- Tom announced the landing in #10 and left further work toward enabling tab completion in MSVC builds to other contributors.
- Anthonin Bonnefoy reported a crash when completing an unmatched first word and supplied a guard plus test in #11; Daniel Gustafsson independently confirmed the problem and endorsed the guard in #12, while Tom found readline-version-dependent reproduction in #13.
- The crash fix landed as 95eb4cd4ff, taking the guard from #11 while omitting its regression test without an explanation in the supplied discussion.
- Jacob Champion reported broken Meson coverage generation in #14 and supplied filename-aware #line directives plus an inline correction to the Meson command; Tom incorporated both with cosmetic variable changes in c75c6f8d28.
- At the thread's close in #15, Tom confirmed testing the coverage fix with Meson and a VPATH configure build and announced its landing; the conversion and both follow-up fixes were committed, while pre-existing VPATH coverage-report quirks remained.