Re: [PATCH] Tab complete EXECUTE FUNCTION for CREATE (EVENT) TRIGGER
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>, David Fetter <david@fetter.org>, pgsql-hackers@postgresql.org
Date: 2018-10-25T23:56:00Z
Lists: pgsql-hackers
On Thu, Oct 25, 2018 at 12:52:01PM +0100, Tom Lane wrote: > Michael Paquier <michael@paquier.xyz> writes: >> To keep the code simple, you could do something like that, by checking >> the head keywords for a match with CREATE TRIGGER, and then move all the >> existing conditions within it: >> ... >> char *execute_keyword; >> ... >> blah and use execute_keyword in the lists; > > Don't think that works unless we remove some of the "const" annotation > in COMPLETE_WITH; which I'd rather not. Indeed, gcc just complained about the thing not being a constant after testing, so please let me discard this suggestion. -- Michael
Commits
-
Add tab completion of EXECUTE FUNCTION for CREATE TRIGGER in psql
- fdf5eade9626 11.1 landed
- 292ef6e2778a 12.0 landed
-
Improve tab completion of CREATE EVENT TRIGGER in psql
- 5953c9969762 12.0 landed
-
Improve tab completion for ANALYZE, EXPLAIN, and VACUUM.
- 121213d9d852 12.0 cited