Do not enable DDL triggers on extension create
Use cartodb.cdb_enable_ddl_hooks() to enable them. Closes #19
This commit is contained in:
parent
0082138503
commit
8a8d198ea2
@ -184,4 +184,5 @@ CREATE OR REPLACE FUNCTION cartodb.cdb_enable_ddl_hooks() returns void AS $$
|
|||||||
ON "column_add" EXECUTE PROCEDURE cartodb.cdb_handle_add_column();
|
ON "column_add" EXECUTE PROCEDURE cartodb.cdb_handle_add_column();
|
||||||
$$ LANGUAGE sql;
|
$$ LANGUAGE sql;
|
||||||
|
|
||||||
SELECT cartodb.cdb_enable_ddl_hooks();
|
-- Do not enable hooks by default
|
||||||
|
--SELECT cartodb.cdb_enable_ddl_hooks();
|
||||||
|
@ -6,6 +6,18 @@ SELECT CDB_SetUserQuotaInBytes(0);
|
|||||||
0
|
0
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
-- Enable ddl triggers
|
||||||
|
SELECT cartodb.cdb_enable_ddl_hooks();
|
||||||
|
NOTICE: event trigger "cdb_on_relation_create" does not exist, skipping
|
||||||
|
NOTICE: event trigger "cdb_on_relation_drop" does not exist, skipping
|
||||||
|
NOTICE: event trigger "cdb_on_alter_column" does not exist, skipping
|
||||||
|
NOTICE: event trigger "cdb_on_drop_column" does not exist, skipping
|
||||||
|
NOTICE: event trigger "cdb_on_add_column" does not exist, skipping
|
||||||
|
cdb_enable_ddl_hooks
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
(1 row)
|
||||||
|
|
||||||
create schema c;
|
create schema c;
|
||||||
CREATE USER cartodb_postgresql_unpriv_user;
|
CREATE USER cartodb_postgresql_unpriv_user;
|
||||||
GRANT ALL ON SCHEMA c to cartodb_postgresql_unpriv_user;
|
GRANT ALL ON SCHEMA c to cartodb_postgresql_unpriv_user;
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
-- Set user quota to infinite
|
-- Set user quota to infinite
|
||||||
SELECT CDB_SetUserQuotaInBytes(0);
|
SELECT CDB_SetUserQuotaInBytes(0);
|
||||||
|
|
||||||
|
-- Enable ddl triggers
|
||||||
|
SELECT cartodb.cdb_enable_ddl_hooks();
|
||||||
|
|
||||||
create schema c;
|
create schema c;
|
||||||
|
|
||||||
CREATE USER cartodb_postgresql_unpriv_user;
|
CREATE USER cartodb_postgresql_unpriv_user;
|
||||||
|
Loading…
Reference in New Issue
Block a user