Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1fcbde

Browse files
committed
Add support for tab-completion of type arguments in \df, \do.
Oversight in commita3027e1.
1 parent01add89 commitd1fcbde

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/bin/psql/tab-complete.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3988,6 +3988,8 @@ psql_completion(const char *text, int start, int end)
39883988
COMPLETE_WITH_QUERY(Query_for_list_of_fdws);
39893989
elseif (TailMatchesCS("\\df*"))
39903990
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions,NULL);
3991+
elseif (HeadMatchesCS("\\df*"))
3992+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes,NULL);
39913993

39923994
elseif (TailMatchesCS("\\dFd*"))
39933995
COMPLETE_WITH_QUERY(Query_for_list_of_ts_dictionaries);
@@ -4005,6 +4007,9 @@ psql_completion(const char *text, int start, int end)
40054007
COMPLETE_WITH_QUERY(Query_for_list_of_languages);
40064008
elseif (TailMatchesCS("\\dn*"))
40074009
COMPLETE_WITH_QUERY(Query_for_list_of_schemas);
4010+
/* no support for completing operators, but we can complete types: */
4011+
elseif (HeadMatchesCS("\\do*",MatchAny))
4012+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_datatypes,NULL);
40084013
elseif (TailMatchesCS("\\dp")||TailMatchesCS("\\z"))
40094014
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_grantables,NULL);
40104015
elseif (TailMatchesCS("\\dPi*"))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp