Content-Length: 275404 | pFad | http://github.com/postgrespro/postgres_cluster/commit/05e85d35afb0a58080d6a1a0b582bf8a6471c7f1

25 psql: Fix \ef, \sf tab completion · postgrespro/postgres_cluster@05e85d3 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/05e85d35afb0a58080d6a1a0b582bf8a6471c7f1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy