Skip to content

Instantly share code, notes, and snippets.

@shernshiou
Created April 23, 2014 10:44
Show Gist options
  • Save shernshiou/11210438 to your computer and use it in GitHub Desktop.
Save shernshiou/11210438 to your computer and use it in GitHub Desktop.
Upgrading from Postgresql 9.1 to Postgresql 9.3
sudo -H -u postgres /usr/lib/postgresql/9.3/bin/pg_upgrade \
-b /usr/lib/postgresql/9.1/bin \
-B /usr/lib/postgresql/9.3/bin \
-d /var/lib/postgresql/9.1/main \
-D /var/lib/postgresql/9.3/main \
-o ' -c config_file=/etc/postgresql/9.1/main/postgresql.conf' \
-O ' -c config_file=/etc/postgresql/9.3/main/postgresql.conf'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment