Postgresql查询所有表所占存储空间大小的语句
select relname, pg_size_pretty(pg_relation_size(relid)) as size from pg_stat_user_tables;