Home  »  CodeProgrammingSnippetsSoftwareTechnology   »   How to Get the Size of the Database in PostgreSQL

How to Get the Size of the Database in PostgreSQL

Posted: August 3, 2022 | by Michael Bright

How to Get the Size of the Database in PostgreSQL.

SELECT pg_size_pretty(pg_database_size('dbname'));

Found this article interesting? Follow Brightwhiz on Facebook, Twitter, and YouTube to read and watch more content we post.