postgresql - How to downgrade/have a previous version of Postgres DB in Postgres.app -
i have installed postgres.app here (http://postgresapp.com) couple of days ago. comes postgres 9.4.4.
today realised software using officially supports postgres 9.3. 9.4.4 version works, there db locks.
is there way downgrade current db (very small in size, created testing), version 9.4.4 9.3? or possible create db version 9.3 without uninstalling current version of postgres.app?
os: os x yosemite 10.10.4
thank you.
- install postgres 9.3 server , client mac
- run
locate initdb
expected in/library/postgresql/9.3/bin/initdb
let's assume there - create 9.3 instance
/library/postgresql/9.3/bin/initdb -d /new_data_directory
- export 9.4 db
/library/postgresql/9.3/bin/pg_dump -u 94_username -d 94_database >somefile.dmp
- shutdown old
/library/postgresql/9.4/bin/pg_ctl stop -m fast
- startup new
/library/postgresql/9.3/bin/pg_ctl start
7.create 93 db/library/postgresql/9.3/bin/psql -u 93_superuser_user -c "create database import_db"
- import 93 db
/library/postgresql/9.3/bin/psql -u 93_superuser_user -f somefile.dmp import_db
i don't know if there articles on topic. know sound old fashion, maybe manuals? :) , experience
Comments
Post a Comment