我嘗試設置項目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