●インストール
./contrib/dbsize
gmake
gmake install
psql -U postgres sampledb -f dbsize.sql
●実行
(1) データベースのデータ領域
psql -U postgres -q sampledb
select database_size("sampledb");
select database_size('customer');
(2) テーブルサイズ
select relation_size('accounts');
select relation_size('itemlist');