model-writtenrun 5828 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Eisentraut reported that enum-label completion appended a closing quote instead of completing the label, bisected the regression to filename-quoting changes, and supplied the differing completion queries in #1.
- Tom Lane volunteered to investigate in #2, then supplied #3, removing query-side quoting and suppressing unwanted closing quotes when no completion matched.
- Tom identified limitations involving unquoted input and embedded single quotes, and found that macOS libedit did not exhibit the original regression, requiring compatibility handling #3.
- Tom revised the patch to detect quoting behavior at runtime, added a completion test, and reported testing with Readline 7.0 and Apple's libedit; embedded single quotes remained an accepted limitation #4.
- The last message presented the revision as ready to commit #4; Tom subsequently committed it with one comment clarification as fe75517443, with backports covering the affected releases beginning with PostgreSQL 13.