1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-06 18:42:54 +03:00

Add tab completion for table_rewrite's CREATE EVENT TRIGGER in psql

Author: Hou Zhijie
Discussion: https://postgr.es/m/OS0PR01MB5716DEFF787B925C4778228C94D69@OS0PR01MB5716.jpnprd01.prod.outlook.com
This commit is contained in:
Michael Paquier
2022-05-25 14:21:05 +09:00
parent 98f897339b
commit 0dc379de64

View File

@@ -3408,7 +3408,8 @@ psql_completion(const char *text, int start, int end)
COMPLETE_WITH("ON"); COMPLETE_WITH("ON");
/* Complete CREATE EVENT TRIGGER <name> ON with event_type */ /* Complete CREATE EVENT TRIGGER <name> ON with event_type */
else if (Matches("CREATE", "EVENT", "TRIGGER", MatchAny, "ON")) 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 <name> ON <event_type>. EXECUTE FUNCTION * Complete CREATE EVENT TRIGGER <name> ON <event_type>. EXECUTE FUNCTION