Add the extension schema to the SEARCH_PATH

This commit is contained in:
manmorjim
2020-02-27 16:06:30 +01:00
parent 0164b07b92
commit 880f756eae
3 changed files with 14 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
\set ECHO none
-- add the schema cdb_dataservices_server to the SEARCH_PATH
DO $$ BEGIN
PERFORM set_config('search_path', current_setting('search_path')||', cdb_dataservices_server', false);
END $$;
\set ECHO all
SELECT exists(SELECT *
FROM pg_proc p
INNER JOIN pg_namespace ns ON (p.pronamespace = ns.oid)