projects
/
postgresql
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67067f9
)
Tab complete second argument to \c with role names.
author
Robert Haas
<rhaas@postgresql.org>
Mon, 10 Nov 2014 13:15:17 +0000
(08:15 -0500)
committer
Robert Haas
<rhaas@postgresql.org>
Mon, 10 Nov 2014 13:15:17 +0000
(08:15 -0500)
Ian Barwick
src/bin/psql/tab-complete.c
patch
|
blob
|
history
diff --git
a/src/bin/psql/tab-complete.c
b/src/bin/psql/tab-complete.c
index 886188c036facd6659a9047dce935477726c5a12..56dc688fcb7fba7f2354c5c7e490eb68829c3182 100644
(file)
--- a/
src/bin/psql/tab-complete.c
+++ b/
src/bin/psql/tab-complete.c
@@
-3704,6
+3704,8
@@
psql_completion(const char *text, int start, int end)
}
else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0)
COMPLETE_WITH_QUERY(Query_for_list_of_databases);
+ else if (strcmp(prev2_wd, "\\connect") == 0 || strcmp(prev2_wd, "\\c") == 0)
+ COMPLETE_WITH_QUERY(Query_for_list_of_roles);
else if (strncmp(prev_wd, "\\da", strlen("\\da")) == 0)
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_aggregates, NULL);