diff options
author | Alvaro Herrera | 2005-11-18 16:31:11 +0000 |
---|---|---|
committer | Alvaro Herrera | 2005-11-18 16:31:11 +0000 |
commit | fa92c25a12ae095a353aa5774c07715ef89efaa1 (patch) | |
tree | 407d34ebb4727878353ad8591c211abd5c964711 | |
parent | a5ddf44da6834f3270cbd02c3ea6cacd74a3cc02 (diff) |
Add tab completion for RESET SESSION AUTHORIZATION.
-rw-r--r-- | src/bin/psql/tab-complete.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 6d002603ca..0de67a4a50 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -1597,6 +1597,10 @@ psql_completion(char *text, int start, int end) && pg_strcasecmp(prev2_wd, "SESSION") == 0 && pg_strcasecmp(prev_wd, "AUTHORIZATION") == 0) COMPLETE_WITH_QUERY(Query_for_list_of_roles); + /* Complete RESET SESSION with AUTHORIZATION */ + else if (pg_strcasecmp(prev2_wd, "RESET") == 0 && + pg_strcasecmp(prev_wd, "SESSION") == 0) + COMPLETE_WITH_CONST("AUTHORIZATION"); /* Complete SET <var> with "TO" */ else if (pg_strcasecmp(prev2_wd, "SET") == 0 && pg_strcasecmp(prev4_wd, "UPDATE") != 0 && |