Remove cartodb from search path

All calls to the extension functions should, and are,
be properly qualified, so there is no need to keep
the cartodb schema in the search_path
This commit is contained in:
Raul Marin 2019-10-03 17:29:35 +02:00
parent 52b3290d26
commit 0e891eff7f
4 changed files with 7 additions and 7 deletions

View File

@ -67,7 +67,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
-- Trigger function to call CDB_LinkGhostTables()
CREATE OR REPLACE FUNCTION @extschema@._CDB_LinkGhostTablesTrigger()
@ -84,7 +84,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
-- Event trigger to save the current transaction in @extschema@.cdb_ddl_execution
CREATE OR REPLACE FUNCTION @extschema@.CDB_SaveDDLTransaction()
@ -97,7 +97,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
-- Creates the trigger on DDL events to link ghost tables
CREATE OR REPLACE FUNCTION @extschema@.CDB_EnableGhostTablesTrigger()

View File

@ -30,7 +30,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
-- Creates the trigger on DDL events in order to reassign the owner
CREATE OR REPLACE FUNCTION @extschema@.CDB_EnableOAuthReassignTablesTrigger()

View File

@ -59,7 +59,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
--
-- Trigger invalidating varnish whenever CDB_TableMetadata
@ -123,7 +123,7 @@ $$ LANGUAGE plpgsql
VOLATILE
PARALLEL UNSAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;
DROP TRIGGER IF EXISTS table_modified ON @extschema@.CDB_TableMetadata;
-- NOTE: on DELETE we would be unable to convert the table

View File

@ -7,4 +7,4 @@ $$ LANGUAGE SQL
STABLE
PARALLEL SAFE
SECURITY DEFINER
SET search_path = @extschema@, pg_temp;
SET search_path = pg_temp;