Raise better notice on _CDB_total_relation_size errors

This commit is contained in:
Raul Ochoa 2015-08-17 10:25:31 +02:00
parent 6bc91c7125
commit 50169e58d5

View File

@ -7,7 +7,7 @@ BEGIN
SELECT pg_total_relation_size(format('"%s"."%s"', _schema_name, _table_name)) INTO relation_size;
EXCEPTION
WHEN undefined_table OR OTHERS THEN
RAISE NOTICE 'caught undefined_table: "%"."%"', _schema_name, _table_name;
RAISE NOTICE 'cartodb._CDB_total_relation_size(''%'', ''%'') caught error: % (%)', _schema_name, _table_name, SQLERRM, SQLSTATE;
END;
RETURN relation_size;
END;