查看数据库、表、索引大小

select pg_size_pretty(pg_table_size('test'));   

select pg_size_pretty(pg_database_size('david'));

select pg_size_pretty(pg_indexes_size('test'));

原文地址:https://www.cnblogs.com/liang545621/p/12605731.html