다음과 같은 쿼리로 간단히 알아볼수 있습니다.
postgres@[local]:5432:postgres]
SQL> SELECT datname, pg_size_pretty(pg_database_size(datname)) FROM pg_database;
datname | pg_size_pretty
-----------+----------------
template1 | 6145 kB
template0 | 6137 kB
postgres | 6238 kB
scottdb | 6350 kB
ds2 | 25 MB
(5 rows)
아주 쉽죠잉?