sql >> Base de Datos >  >> RDS >> PostgreSQL

Cómo degradar/tener una versión anterior de Postgres DB en Postgres.app

  1. instale el servidor y cliente postgres 9.3 en su mac
  2. ejecutar locate initdb esperado en /Library/PostgreSQL/9.3/bin/initdb supongamos que está allí
  3. crear instancia 9.3 /Library/PostgreSQL/9.3/bin/initdb -D /new_data_directory
  4. exportar 9.4 db /Library/PostgreSQL/9.3/bin/pg_dump -U 94_username -d 94_database >somefile.dmp
  5. apagar el antiguo /Library/PostgreSQL/9.4/bin/pg_ctl stop -m fast
  6. iniciar nuevo /Library/PostgreSQL/9.3/bin/pg_ctl start 7.crear 93 db /Library/PostgreSQL/9.3/bin/psql -U 93_superuser_user -c "create database IMPORT_DB"
  7. importar 93 db /Library/PostgreSQL/9.3/bin/psql -U 93_superuser_user -f somefile.dmp IMPORT_DB

No sé si hay artículos sobre este tema. Sé que sueno anticuado, pero ¿tal vez manuales? :) y experiencia