Re: Converting tab-complete.c's else-if chain to a switch
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2024-07-26T20:02:47Z
Lists: pgsql-hackers
Attachments
- v3-0001-Invent-MatchAnyN-option-for-tab-complete.c-s-Matc.patch (text/x-diff) patch v3-0001
- v3-0002-Prepare-tab-complete.c-for-preprocessing.patch (text/x-diff) patch v3-0002
- v3-0003-Convert-tab-complete-s-long-else-if-chain-to-a-sw.patch (text/x-diff) patch v3-0003
I wrote: > I modified the preprocessor to work like that, and I like the results > better than what I had. I thought this version of the patch would be less subject to merge conflicts than v1, but it didn't take long for somebody to break it. Rebased v3 attached -- no nontrivial changes from v2. I'd like to get this merged soon ... regards, tom lane
Commits
-
Don't hard-code the input file name in gen_tabcomplete.pl's output.
- c75c6f8d280a 18.0 landed
-
Avoid possible segfault in psql's tab completion.
- 95eb4cd4ff06 18.0 landed
-
Convert tab-complete's long else-if chain to a switch statement.
- f391d9dc93a2 18.0 landed
-
Prepare tab-complete.c for preprocessing.
- bd1276a3c943 18.0 landed
-
Invent "MatchAnyN" option for tab-complete.c's Matches/MatchesCS.
- ef0938f7bdd0 18.0 landed