model-writtenrun 9337 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Ken Tanzer reported that psql 9.6.13 replaced text typed after UPDATE ... SET column = with DEFAULT when Tab was pressed, and Tim Cross confirmed that surprising behavior #1 #4.
- Jeff Janes traced the unwanted completion to the GUC-setting rule and considered either limited expression suggestions or no completion; Tom Lane independently identified the same mistaken context, while Tim favored doing nothing over replacing input #6 #7 #8 #9.
- Tom Lane moved the discussion to pgsql-hackers and submitted a patch excluding UPDATE from the GUC rule and removing the DEFAULT fallback, while flagging other single-choice completions for investigation #12.
- Tom then established that complete_from_const deliberately returned its fixed string without matching the user's input, whereas complete_from_list respected the typed prefix, correcting the earlier attribution to readline itself #13.
- After finding that removing complete_from_const entirely enabled unwanted filename completion, Tom submitted an independent patch retaining it only for the empty-string fallback; he proposed this broader behavior change for HEAD and backpatching the earlier GUC fix #14.
- The thread ended with both patches proposed and no subsequent independent patch review recorded; Tom later committed the GUC fix with DEFAULT retained for recognized non-enum, non-boolean settings, and backpatched it through PostgreSQL 9.6 because older code could not identify unknown GUC names #12 #14 0ec3e13c69.
- Tom also committed the independent completion-macro patch with expanded explanatory comments, applying it to development and PostgreSQL 12 while avoiding the broader behavior change in already released branches; both submitted fixes therefore landed #14 b4771d7c7f.