Skip to content

Instantly share code, notes, and snippets.

@armilam
armilam / upgrade.sh
Last active March 21, 2018 16:48 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL using Homebrew (macOS)
# Install the latest version of postgresql via Homebrew
brew upgrade postgresql
# After doing that, I needed to upgrade my existing database
# Need to have both the old and new version of postgresql installed. The example here uses 9.6.1 and 10.3.
brew unlink postgresql
brew switch postgresql 10.3
brew link postgresql