From 6d0126812a1362a9edadc836be19f9f12db4d1cb Mon Sep 17 00:00:00 2001 From: "Hou Zhijie" Date: Wed, 25 May 2022 11:31:06 +0800 Subject: [PATCH] Add tab complete for table_rewrite Tab-complete CREATE EVENT TRIGGER ON TABLE_REWRITE --- src/bin/psql/tab-complete.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 55af9eb..e1cc753 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3408,7 +3408,8 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH("ON"); /* Complete CREATE EVENT TRIGGER ON with event_type */ else if (Matches("CREATE", "EVENT", "TRIGGER", MatchAny, "ON")) - COMPLETE_WITH("ddl_command_start", "ddl_command_end", "sql_drop"); + COMPLETE_WITH("ddl_command_start", "ddl_command_end", "sql_drop", + "table_rewrite"); /* * Complete CREATE EVENT TRIGGER ON . EXECUTE FUNCTION -- 2.7.2.windows.1