1. 查看数据库大小
select pg_size_pretty(pg_database_size('database'));
2. 查看表大小
select pg_table_size('table');