Postgres版本不兼容

时间:2013-09-29 10:30:00

标签: postgresql

我在启动postgres时遇到问题,如下所示:

$ pg_ctl -D /usr/local/var/postgres start
server starting
FATAL:  database files are incompatible with server
DETAIL:  The data directory was initialized by PostgreSQL version 9.1, which is not compatible with this version 9.3.0.

任何人都知道如何使这些版本兼容吗?

1 个答案:

答案 0 :(得分:1)

您有两种选择:

  1. 运行9.1版本,转储数据库并使用9.3
  2. 恢复它
  3. http://www.postgresql.org/docs/9.3/static/pgupgrade.html
相关问题