#revert-size_calc

This commit is contained in:
Kartones
2015-02-27 10:53:14 +01:00
parent b913defebb
commit 0a3d08edc3
4 changed files with 11 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ BEGIN
FROM user_tables
),
sizes AS (
SELECT COALESCE(INT8(SUM(pg_relation_size('"' || schema_name || '"."' || table_name || '"')))) table_size,
SELECT COALESCE(INT8(SUM(pg_total_relation_size('"' || schema_name || '"."' || table_name || '"')))) table_size,
CASE
WHEN is_overview THEN 0
WHEN is_raster THEN 1