diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2018-04-02 12:46:24 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2018-04-02 12:46:24 -0400 |
commit | 05e85d35afb0a58080d6a1a0b582bf8a6471c7f1 (patch) | |
tree | c44d3f356e2d8027e25f6ccdd05dfc5d6fcf998f /src | |
parent | 6278a2a262b63faaf47eb2371f6bcb5b6e3ff118 (diff) | |
download | postgresql-05e85d35afb0a58080d6a1a0b582bf8a6471c7f1.tar.gz postgresql-05e85d35afb0a58080d6a1a0b582bf8a6471c7f1.zip |
psql: Fix \ef, \sf tab completion
\ef and \sf take any kind of routine, not just normal functions.
Author: Pavel Stehule <pavel.stehule@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 6926ca132e7..f6f7c52bb04 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3685,7 +3685,7 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations, NULL); else if (TailMatchesCS1("\\ef")) - COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL); + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL); else if (TailMatchesCS1("\\ev")) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL); @@ -3794,7 +3794,7 @@ psql_completion(const char *text, int start, int end) COMPLETE_WITH_LIST_CS3("default", "verbose", "terse"); } else if (TailMatchesCS1("\\sf*")) - COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL); + COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL); else if (TailMatchesCS1("\\sv*")) COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL); else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\i|\\include|" |