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: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Cc: Thomas Munro <thomas.munro@gmail.com>, Andres Freund <andres@anarazel.de>,
pgsql-hackers@lists.postgresql.org
Date: 2024-10-10T16:12:20Z
Lists: pgsql-hackers
Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com> writes: > bd1276a3c9 seems to have introduced a segfault when trying to complete > a word that doesn't have any match. For example, 'postgres=# z\t' will > yield the following backtrace: Interesting --- it seems to depend on which readline version you're using, because I see a crash with current MacPorts' libreadline but not with RHEL8's. Thanks for the report and patch! 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