-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
Description
If upgrading from 9.3 to 9.4, the databases created under 9.3 will no longer be available. This is due, at least in part, to databases being stored in /var/lib/postgresql/9.3/ and /var/lib/postgresql/9.4/ respectively.
Seems at least following logical steps are needed:
# upgrade
pg_upgrade -v \
-d /usr/local/var/postgres \
-D /usr/local/var/postgres9.5 \
-b /usr/local/Cellar/postgresql/9.4.5_2/bin/ \
-B /usr/local/Cellar/postgresql/9.5.0/bin/
# move files
cd /usr/local/var
mv postgres postgres9.4
mv postgres9.5 postgres
# reference: https://stackoverflow.com/questions/24379373/how-to-upgrade-postgres-from-9-4-to-9-5-without-losing-data We have scripts for upgrading PostGIS, but definitively need one for upgrading PostgreSQL also. Script should take into consideration that there already exists data in 9.4 folder.
Proceed with caution, possible bugs: