Created
December 19, 2024 09:14
-
-
Save hanula/df9b98e8e549056232f5b1771fd5b4e1 to your computer and use it in GitHub Desktop.
Heroku DB size and version summary
This file contains 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
#!/bin/bash | |
heroku pg:info --app $MY_APP \ | |
| sed -e 's/[\(\)]//g' \ | |
| awk '/^=== /{db=$2} /^Data Size: /{size=$8} /^PG Version: /{version=$3} /^$/{printf("%-32s PG=%-8s size=%-10s\n", db, version, size)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment