Postgres obtener el tamaño de la base de datos
SELECT pg_size_pretty( pg_database_size('dbname') );
Cloudy Caiman
SELECT pg_size_pretty( pg_database_size('dbname') );
SELECT pg_size_pretty(pg_indexes_size('dbname'));