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

Commit 33e9f2c

Browse files
committed
Add tab completion for RESET SESSION AUTHORIZATION.
1 parent 7871b7d commit 33e9f2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bin/psql/tab-complete.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.140 2005/11/14 17:48:43 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/tab-complete.c,v 1.141 2005/11/18 16:31:11 alvherre Exp $
77
*/
88

99
/*----------------------------------------------------------------------
@@ -1597,6 +1597,10 @@ psql_completion(char *text, int start, int end)
15971597
&& pg_strcasecmp(prev2_wd, "SESSION") == 0
15981598
&& pg_strcasecmp(prev_wd, "AUTHORIZATION") == 0)
15991599
COMPLETE_WITH_QUERY(Query_for_list_of_roles);
1600+
/* Complete RESET SESSION with AUTHORIZATION */
1601+
else if (pg_strcasecmp(prev2_wd, "RESET") == 0 &&
1602+
pg_strcasecmp(prev_wd, "SESSION") == 0)
1603+
COMPLETE_WITH_CONST("AUTHORIZATION");
16001604
/* Complete SET <var> with "TO" */
16011605
else if (pg_strcasecmp(prev2_wd, "SET") == 0 &&
16021606
pg_strcasecmp(prev4_wd, "UPDATE") != 0 &&

0 commit comments

Comments
 (0)