我尝试设置项目https://github.com/harrystech/prelaunchr。它失败了,因为我似乎有多个Postgres问题。在Yosemite上卸载Postgres并重新安装Postgres 9.3
我最近的问题是:
The data directory was initialized by PostgreSQL version 9.3, which is not compatible with this version 9.4.0.
经过很多不同的方式,我想卸载Postgres的现在和设立的Postgres 9.3
我怎么能这样做?
谢谢 本杰明
更新:
我设法切换回PG 9.3。但是,当我尝试与启动服务器:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
我得到:
LOG: could not open temporary-files directory "pg_tblspc/.keep/PG_9.3_201306121/pgsql_tmp": Not a directory
LOG: could not open tablespace directory "pg_tblspc/.keep/PG_9.3_201306121": Not a directory
LOG: database system was interrupted while in recovery at 2015-02-06 01:11:40 PST
HINT: This probably means that some data is corrupted and you will have to use the last backup for recovery.
LOG: database system was not properly shut down; automatic recovery in progress
FATAL: could not open directory "pg_stat": No such file or directory
LOG: startup process (PID 13187) exited with exit code 1
LOG: aborting startup due to startup process failure