From cd5c8f2904afd86303a30bb6777d9097e6b8e1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Mart=C3=ADnez?= Date: Tue, 29 Dec 2015 10:42:54 +0100 Subject: [PATCH] Remove outdated references to schema triggers and change triggers --- doc/README.md | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/doc/README.md b/doc/README.md index a76d615..e18e32c 100644 --- a/doc/README.md +++ b/doc/README.md @@ -20,29 +20,4 @@ The CartoDB PostgreSQL extension is a module to load into each CartoDB user data # Checks -No user other than the superuser should be allowed to change `statement_timeout` for the session (SET statement_timeout disallowed). - User tables need to match certain structure criteria (See [[CartoDB-user-table]]) so the extension should provide a mean to enforce such structure everytime an attempt to change structure is encountered. - -# Events - -The events we want some function to be called upon are: - -| event | arguments to handler function | function duty | OK* | -|------------------------|--------------------------------------|----------------------------------|-----| -| SET variable | name of variable | forbid changing some vars | | -| RENAME table | old and new name + oid of the table | flush cache | | -| ADD/DROP/ALTER column | oid of the table | flush cache, cartodbfy, upd meta | Y | -| DISABLE/DROP trigger | oid of table, name of trigger | cartodbfy or forbid | | -| DROP table | oid of the table | flush cache and metadata | Y | -| CREATE table | oid of the table | cartodby, upd metadata | Y | -| GRANT | oid of table, privilege, role | flush cache, upd metadata | -| REVOKE | oid of table, privilege, role | flush cache, upd metadata | - - -* event available by installing https://github.com/CartoDB/pg_schema_triggers - -At this stage we don't need more than this, but the number of events and the number of arguments passed to the handler function may expand in the future, so the extension should be written in a way to easily allow that. - -Some of the handler will need to act _after_ the statement is completed (CREATE TABLE, for example). -