Get the physical disk size of a postgres db

SELECT pg_database.datname,
pg_size_pretty(pg_database_size(pg_database.datname)) AS size
FROM pg_database;

No comments:

Post a Comment