postgresql – 如何在Postgres.app中降级/拥有Postgres DB的早期版本

前端之家收集整理的这篇文章主要介绍了postgresql – 如何在Postgres.app中降级/拥有Postgres DB的早期版本前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我几天前从这里( http://postgresapp.com)安装了Postgres.app.它附有Postgres 9.4.4.

今天我意识到我正在使用的软件官方仅支持Postgres 9.3. 9.4.4版本有效,但有时会有DB锁.

有没有办法降级我当前的数据库(尺寸非常小,仅用于测试),版本9.4.4到9.3?或者是否可以在不卸载当前版本的Postgres.app的情况下创建9.3版本的另一个数据库

操作系统:OS X Yosemite 10.10.4

谢谢.

>将postgres 9.3服务器和客户端安装到您的mac
>运行locate initdb
预计在/Library/Postgresql/9.3/bin/initdb让我们假设它在那里
>创建9.3实例/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

我不知道是否有关于这个主题文章.我知道我听起来很古老,但也许是手册? :)和经验

猜你在找的Postgre SQL相关文章