Skip to content

Instantly share code, notes, and snippets.

@attenzione
Created February 26, 2016 10:19
Show Gist options
  • Save attenzione/0a80a68a7b7ab037236b to your computer and use it in GitHub Desktop.
Save attenzione/0a80a68a7b7ab037236b to your computer and use it in GitHub Desktop.
cd /usr/local/var/
mkdir postgres-9.2.1
initdb /usr/local/var/postgres-9.2.1/
pg_upgrade --old-datadir /usr/local/var/postgres --new-datadir /usr/local/var/postgres-9.2.1 --old-bindir /usr/local/Cellar/postgresql/9.1.5/bin/ --new-bindir /usr/local/Cellar/postgresql/9.2.1/bin/
mv postgres postgres-9.1.5
mv postgres-9.2.1 postgres
rm analyze_new_cluster.sh
rm delete_old_cluster.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment