Skip to content

Commit 05e85d3

Browse files
committed
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>
1 parent 6278a2a commit 05e85d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,7 +3685,7 @@ psql_completion(const char *text, int start, int end)
36853685
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_relations, NULL);
36863686

36873687
else if (TailMatchesCS1("\\ef"))
3688-
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
3688+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
36893689
else if (TailMatchesCS1("\\ev"))
36903690
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
36913691

@@ -3794,7 +3794,7 @@ psql_completion(const char *text, int start, int end)
37943794
COMPLETE_WITH_LIST_CS3("default", "verbose", "terse");
37953795
}
37963796
else if (TailMatchesCS1("\\sf*"))
3797-
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_functions, NULL);
3797+
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_routines, NULL);
37983798
else if (TailMatchesCS1("\\sv*"))
37993799
COMPLETE_WITH_SCHEMA_QUERY(Query_for_list_of_views, NULL);
38003800
else if (TailMatchesCS1("\\cd|\\e|\\edit|\\g|\\i|\\include|"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy