Created
December 14, 2016 14:01
-
-
Save amccarty/8e6d0a724ea6113d8bfbf7e452ff9de8 to your computer and use it in GitHub Desktop.
Check postgres DB size on disk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT pg_database.datname, | |
pg_size_pretty(pg_database_size(pg_database.datname)) AS size | |
FROM pg_database; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment