mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
Add support for tab-completion of type arguments in \df, \do.
Oversight in commit a3027e1e7.
This commit is contained in:
parent
01add89454
commit
d1fcbde579
@ -3988,6 +3988,8 @@ psql_completion(const char *text, int start, int end)
|
|||||||
COMPLETE_WITH_QUERY(Query_for_list_of_fdws);
|
COMPLETE_WITH_QUERY(Query_for_list_of_fdws);
|
||||||
else if (TailMatchesCS("\\df*"))
|
else if (TailMatchesCS("\\df*"))
|
||||||
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
|
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
|
||||||
|
else if (HeadMatchesCS("\\df*"))
|
||||||
|
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes, NULL);
|
||||||
|
|
||||||
else if (TailMatchesCS("\\dFd*"))
|
else if (TailMatchesCS("\\dFd*"))
|
||||||
COMPLETE_WITH_QUERY(Query_for_list_of_ts_dictionaries);
|
COMPLETE_WITH_QUERY(Query_for_list_of_ts_dictionaries);
|
||||||
@ -4005,6 +4007,9 @@ psql_completion(const char *text, int start, int end)
|
|||||||
COMPLETE_WITH_QUERY(Query_for_list_of_languages);
|
COMPLETE_WITH_QUERY(Query_for_list_of_languages);
|
||||||
else if (TailMatchesCS("\\dn*"))
|
else if (TailMatchesCS("\\dn*"))
|
||||||
COMPLETE_WITH_QUERY(Query_for_list_of_schemas);
|
COMPLETE_WITH_QUERY(Query_for_list_of_schemas);
|
||||||
|
/* no support for completing operators, but we can complete types: */
|
||||||
|
else if (HeadMatchesCS("\\do*", MatchAny))
|
||||||
|
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes, NULL);
|
||||||
else if (TailMatchesCS("\\dp") || TailMatchesCS("\\z"))
|
else if (TailMatchesCS("\\dp") || TailMatchesCS("\\z"))
|
||||||
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_grantables, NULL);
|
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_grantables, NULL);
|
||||||
else if (TailMatchesCS("\\dPi*"))
|
else if (TailMatchesCS("\\dPi*"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user