Postgres: Show Schema Sizes in a Database

Posted by in Software

While loading a large database from files to a Postgres schema, I found very useful to know how much space on disk it actually occupies (just in case I need to re-size the disk). I found this answer online:

Which results in a list like:

postgres-info

HTH,

PS: All credit goes to this StackOverflow answer!


A little experiment: If you find this post and ad below useful, please check the ad out :-)