Raise better notice on _CDB_total_relation_size errors
This commit is contained in:
parent
6bc91c7125
commit
50169e58d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user