Read more

PostgreSQL: Show size of all databases

Thomas Eisenbarth
January 14, 2016Software engineer at makandra GmbH

Use this:

SELECT pg_database.datname as "database_name", pg_database_size(pg_database.datname)/1024/1024 AS size_in_mb FROM pg_database ORDER by size_in_mb DESC;
Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

Want to see database sizes in MySQL ?

Posted by Thomas Eisenbarth to makandra dev (2016-01-14 15:52)