Created
July 1, 2014 11:36
-
-
Save demofly/00a83892cba486daf1cc to your computer and use it in GitHub Desktop.
Место занимаемое базами Postgres
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
e=$(psql -lAt | head -n1 | cut -d\| -f1); psql -c "SELECT pg_database.datname, pg_database_size(pg_database.datname), pg_size_pretty(pg_database_size(pg_database.datname)) FROM pg_database ORDER BY pg_database_size DESC;" -d ${e} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment