From e787b1d097ad50f523c32344d2c39b3e51082a31 Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Tue, 22 Oct 2019 20:09:15 +0200 Subject: [PATCH] Missing qualification --- scripts-available/CDB_Quota.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts-available/CDB_Quota.sql b/scripts-available/CDB_Quota.sql index d3dc983..d11f400 100644 --- a/scripts-available/CDB_Quota.sql +++ b/scripts-available/CDB_Quota.sql @@ -21,8 +21,9 @@ $$ DECLARE total_size INT8; BEGIN + -- TODO: Make this compatible with postgis without raster (No view and no raster tables) WITH raster_tables AS ( - SELECT o_table_name, r_table_name FROM raster_overviews + SELECT o_table_name, r_table_name FROM @postgisschema@.raster_overviews WHERE o_table_schema = schema_name AND o_table_catalog = current_database() ), user_tables AS (