postgresql查看数据库总大小

2015-11-21 01:43:11 · 作者: · 浏览: 2

有两种方式,任何一个都可以

第一 在psql控制台中

\l+

第二 在数据库中查

select pg_size_pretty(pg_database_size('数据库名'));