I have installed Postgres.app from here (http://postgresapp.com) a couple of days ago. It comes with Postgres 9.4.4.
Today I realised that the software I am using officially supports only Postgres 9.3. The 9.4.4 version works, but sometimes there are DB locks.
Is there a way to downgrade my current db (very small in size, created just for testing), which is version 9.4.4 to 9.3? Or is it possible to create another DB with version 9.3 without uninstalling current version of Postgres.app?
OS: OS X Yosemite 10.10.4
Thank you.
locate initdb
expected in /Library/PostgreSQL/9.3/bin/initdb
let's assume it is there/Library/PostgreSQL/9.3/bin/initdb -D /new_data_directory
/Library/PostgreSQL/9.3/bin/pg_dump -U 94_username -d 94_database >somefile.dmp
/Library/PostgreSQL/9.4/bin/pg_ctl stop -m fast
/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"
/Library/PostgreSQL/9.3/bin/psql -U 93_superuser_user -f somefile.dmp IMPORT_DB
I don't know if there are articles on this topic. I know I sound old fashion, but maybe manuals? :) and experience
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With