Exclude configuration tables from the quota

cdb_tablemetadata was already being excluded, but not cdb_conf and cdb_analysis_catalog
This commit is contained in:
Javier Goizueta
2016-10-14 10:58:16 +02:00
parent 07892271e5
commit 9731ce38ec
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ AS $$
FROM pg_class c
JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind = 'r'
AND c.relname NOT IN ('cdb_tablemetadata', 'spatial_ref_sys')
AND c.relname NOT IN ('cdb_tablemetadata', 'cdb_analysis_catalog', 'cdb_conf', 'spatial_ref_sys')
AND CASE WHEN schema_name IS NULL
THEN n.nspname NOT IN ('pg_catalog', 'information_schema', 'topology', 'cartodb')
ELSE n.nspname = schema_name