Home | About | Apps | Github | Rss
The following commands allow you to query the size on disk occupied by tables, dbs and other relations.
SELECT pg_size_pretty( pg_total_relation_size('table_name') );
SELECT pg_size_pretty( pg_database_size('dbname') );