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.

  1. install postgres 9.3 server , client mac
  2. run locate initdb expected in /library/postgresql/9.3/bin/initdb let's assume there
  3. create 9.3 instance /library/postgresql/9.3/bin/initdb -d /new_data_directory
  4. export 9.4 db /library/postgresql/9.3/bin/pg_dump -u 94_username -d 94_database >somefile.dmp
  5. shutdown old /library/postgresql/9.4/bin/pg_ctl stop -m fast
  6. 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"
  7. 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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -