Fully qualify call to CDB_UserDataSize from quota trigger

master
Sandro Santilli 10 years ago
parent bfd56f0ea6
commit f5ad0d0434

@ -6,6 +6,7 @@ Bug fixes:
- Fix recursive trigger on create table (#32) - Fix recursive trigger on create table (#32)
- Ensure cartodb_id uses an associated sequence (#33) - Ensure cartodb_id uses an associated sequence (#33)
- Fully qualify call to cdb_disable_ddl_hooks from cdb_enable_ddl_hooks - Fully qualify call to cdb_disable_ddl_hooks from cdb_enable_ddl_hooks
- Fully qualify call to CDB_UserDataSize from quota trigger
0.1.0 - 2014-05-23 0.1.0 - 2014-05-23

@ -50,7 +50,7 @@ BEGIN
RETURN NEW; RETURN NEW;
END IF; END IF;
SELECT CDB_UserDataSize() INTO quota; SELECT public.CDB_UserDataSize() INTO quota;
IF quota > qmax THEN IF quota > qmax THEN
RAISE EXCEPTION 'Quota exceeded by %KB', (quota-qmax)/1024; RAISE EXCEPTION 'Quota exceeded by %KB', (quota-qmax)/1024;
ELSE RAISE DEBUG 'User quota in bytes: % < % (max allowed)', quota, qmax; ELSE RAISE DEBUG 'User quota in bytes: % < % (max allowed)', quota, qmax;

Loading…
Cancel
Save