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 Site Host

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.

See also  How to Add a Class to an HTML Element Using Vanilla JavaScript