From f3e4721a909b72a2cfad67359b5640e6710260a2 Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Tue, 20 Aug 2019 10:02:43 +0530 Subject: [PATCH] Added missing file for function selectivity feature. Fixes #4333 --- .../ppas/sql/12_plus/get_support_functions.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/functions/ppas/sql/12_plus/get_support_functions.sql diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/functions/ppas/sql/12_plus/get_support_functions.sql b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/functions/ppas/sql/12_plus/get_support_functions.sql new file mode 100644 index 000000000..4ce65f596 --- /dev/null +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/functions/templates/functions/ppas/sql/12_plus/get_support_functions.sql @@ -0,0 +1,12 @@ +SELECT quote_ident(nspname) || '.' || quote_ident(proname) AS sfunctions +FROM pg_proc p, pg_namespace n, pg_language l +WHERE p.pronamespace = n.oid +AND p.prolang = l.oid +AND p.prorettype = 'internal'::regtype::oid +AND pg_catalog.array_to_string(p.proargtypes, ',') = 'internal'::regtype::oid::text +AND (l.lanname = 'internal' or l.lanname = 'c' ) +-- -- If Show SystemObjects is not true +{% if not show_system_objects %} + AND (nspname NOT LIKE 'pg\_%' AND nspname NOT in ('information_schema')) +{% endif %} +ORDER BY nspname ASC, proname ASC