Jul 2019

2 commits
Don't treat complete_from_const as equivalent to complete_from_list.
2 Jul 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+1 more
LLM analysis, 100% suremodified before commitlight changesfrom patchset #14

The executable changes in src/bin/psql/tab-complete.c match #14: single-element lists use complete_from_list, and the no-match fallback uses COMPLETE_WITH_CONST. The commit expands the complete_from_const documentation to explain empty-string behavior and why overwriting input is undesirable.

Fix tab completion of "SET variable TO|=" to not offer bogus completions.
2 Jul 2019Tom Lanemaster13beta1REL_19_STABLE13beta1REL_18_STABLE13beta1REL_17_STABLE13beta1REL_16_STABLE13beta1REL_15_STABLE13beta1REL_14_STABLE13beta1REL_13_STABLE13beta1+4 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #12

The commit preserves the UPDATE exclusion from #12 in src/bin/psql/tab-complete.c but restructures generic completion under an if (guctype) guard. Unlike the submitted patch, it retains DEFAULT completion for recognized GUCs that are neither enum nor boolean, while offering nothing for unknown names.

Credits across 2 commits

Author
Tom LaneLLM2
Committer
Tom Lane2

N LLM means N of the credits come from LLM analysis, not from commit trailers.