mirror of
https://github.com/postgres/postgres.git
synced 2025-05-08 07:21:33 +03:00
Tab complete second argument to \c with role names.
Ian Barwick
This commit is contained in:
parent
67067f9ae3
commit
095d40123c
@ -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)
|
else if (strcmp(prev_wd, "\\connect") == 0 || strcmp(prev_wd, "\\c") == 0)
|
||||||
COMPLETE_WITH_QUERY(Query_for_list_of_databases);
|
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)
|
else if (strncmp(prev_wd, "\\da", strlen("\\da")) == 0)
|
||||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_aggregates, NULL);
|
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_aggregates, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user