#69 now using pg_relation_size

This commit is contained in:
Kartones
2015-02-17 15:40:26 +01:00
parent d43e141291
commit 6c7706672f
6 changed files with 21 additions and 16 deletions

View File

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