]> granicus.if.org Git - postgresql/commitdiff
psql: Fix \ef, \sf tab completion
authorPeter Eisentraut <peter_e@gmx.net>
Mon, 2 Apr 2018 16:46:24 +0000 (12:46 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Mon, 2 Apr 2018 16:46:24 +0000 (12:46 -0400)
\ef and \sf take any kind of routine, not just normal functions.

Author: Pavel Stehule <pavel.stehule@gmail.com>

src/bin/psql/tab-complete.c

index 6926ca132e7b16b1537ef8291c1b8e2d31c911ed..f6f7c52bb0473a86ced07b194cc6e0fd56c22740 100644 (file)
@@ -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|"