如何将Postgresql 8.3数据库文件升级到8.4

我升级了我的Ubuntu 8.04到Ubuntu 10.04。 不幸的是,升级过程也将Postgres 8.3安装更新为Postgres 8.4安装。 我的感觉是,尽pipe数据库引擎二进制文件已被更新,数据库本身并没有被迁移,因此它不能被8.4加载。 由于8.3数据格式与8.4格式不兼容,所以改变postgresql.conf是不够的,我的8.4安装也不能使用pg_dump。

我需要一种方法来将我之前的基础从8.3升级到8.4,而没有使用8.3引擎,只有8.4。

任何线索?

谢谢 !

阅读/usr/share/doc/postgresql-8.4/README.Debian.gzman pg_upgradecluster

我刚刚从源码编译8.3来解决这个问题:./configure –enable-integer-datetimes –without-readline然后make和make install

之后,启动8.3:/ usr / local / pgsql / bin / postgres -D /var/lib/postgresql/8.3/main -c config_file = /etc/postgresql/8.3/main/postgresql.conf然后把我的8.3 base:sudo / usr / bin / pg_dumpall -o -U postgres> /local_pc/tmp/backup.txt

重新启动8.4,pg_restore'd它,像一个魅力工作。