如何升级postgres数据库?不兼容错误

时间:2011-12-20 00:39:23

标签: linux postgresql upgrade

我通过Homebrew安装了postgresql。

升级后我遇到以下问题:

FATAL: database files are incompatible with server DETAIL: The data directory was initialized by PostgreSQL version 9.0, which is not compatible with this version 9.1.2.

有关如何升级的任何提示?我尝试了以下方法:

$ pg_upgrade -d /usr/local/var/postgres/ -D /usr/local/var/postgres -b 
/usr/local/Cellar/postgresql/9.0.4/bin -B /usr/local/Cellar/postgresql/9.1.2/bin

它不起作用。这是输出。

Performing Consistency Checks
Checking current, bin, and data directories                 ok
Checking cluster versions                                   
This utility can only upgrade to PostgreSQL version 9.1.
Failure, exiting

错误。

0 个答案:

没有答案