Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0dc379d

Browse files
committed
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
1 parent 98f8973 commit 0dc379d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/psql/tab-complete.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -3408,7 +3408,8 @@ psql_completion(const char *text, int start, int end)
34083408
COMPLETE_WITH("ON");
34093409
/* Complete CREATE EVENT TRIGGER <name> ON with event_type */
34103410
else if (Matches("CREATE", "EVENT", "TRIGGER", MatchAny, "ON"))
3411-
COMPLETE_WITH("ddl_command_start", "ddl_command_end", "sql_drop");
3411+
COMPLETE_WITH("ddl_command_start", "ddl_command_end", "sql_drop",
3412+
"table_rewrite");
34123413

34133414
/*
34143415
* Complete CREATE EVENT TRIGGER <name> ON <event_type>. EXECUTE FUNCTION

0 commit comments

Comments
 (0)