Created
July 19, 2019 17:34
-
-
Save avegancafe/0bc695f7f6cbc4d97dbff17cab11b836 to your computer and use it in GitHub Desktop.
A script to remove any old postgres version.
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
| # After this, you should be free to install any new version without fear of having old data files | |
| # | |
| # Writing this because `brew postgresql-upgrade-database` will sometimes read the wrong version of postgres if | |
| # you have had multiple previous versions of postgres | |
| brew uninstall postgres | |
| brew uninstall postgres@<insert version here> | |
| rm -rf /usr/local/var/postgres | |
| rm -rf /usr/local/var/postgres@<insert version here> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment