diff options
author | Bernd Helmle | 2013-08-26 22:10:34 +0000 |
---|---|---|
committer | Bernd Helmle | 2013-08-26 22:10:34 +0000 |
commit | a46b35dbc36df38d42c8b8538aeee724f47030d1 (patch) | |
tree | 60e2d46b7cb90ad1ccbef6880cfa3c3654ebfe68 | |
parent | 8d00ab630668a15e86b584b39187ef3bf3154511 (diff) |
Teach SET search_path TO to complete possible namespaces.
-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 b3de387b94..65d9610892 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3121,6 +3121,10 @@ psql_completion(char *text, int start, int end) COMPLETE_WITH_LIST(my_list); } + else if (pg_strcasecmp(prev2_wd, "search_path") == 0) + { + COMPLETE_WITH_QUERY(Query_for_list_of_schemas); + } else { static const char *const my_list[] = |