diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-05-25 14:21:05 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-05-25 14:21:05 +0900 |
commit | 0dc379de646309d388990399132f9c12137e86e4 (patch) | |
tree | a9be8e3a01911be96ccc8664bab9408e6dd2c2a7 /src | |
parent | 98f897339b011d04f3b9f48050aa31de9a5a4869 (diff) | |
download | postgresql-0dc379de646309d388990399132f9c12137e86e4.tar.gz postgresql-0dc379de646309d388990399132f9c12137e86e4.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 55af9eb04e4..e1cc7534899 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 <name> 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 <name> ON <event_type>. EXECUTE FUNCTION |