微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何使用PostGIS升级PostgreSQL?

我正在运行Postgresql 9.1,我正在尝试升级到Postgresql 9.3:

$/usr/lib/postgresql/9.3/bin/pg_upgrade -b
/usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.3/bin -d
/var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.3/main/ -O “-c
config_file=/etc/postgresql/9.3/main/postgresql.conf” -o “-c
config_file=/etc/postgresql/9.1/main/postgresql.conf”

然而它失败了:

Checking for presence of required libraries fatal

Your installation references loadable libraries that are missing from
the new installation. You can add these libraries to the new
installation,or remove the functions using them from the old
installation. A list of problem libraries is in the file:
loadable_libraries.txt

loadable_libraries.txt包含:

Could not load library “$libdir/postgis-1.5” ERROR: Could not access
file “$libdir/postgis-1.5”: No such file or directory

它类似于Missing libraries when upgrading to PostGIS 2.1 and PostgreSQL 9.3.1 using homebrew.

我正在运行Ubuntu,我使用apt-get安装Postgresql和PostGIS.

有人管理过吗?

PostGIS 1.5 is not supported with PostgreSQL 9.3开始,您也在升级PostGIS版本.由于pg_upgrade不能用于此,因此您需要遵循 hard upgrade procedure,它利用PostGIS附带的postgis_restore.pl脚本中的逻辑.如果您对该程序有任何进一步的问题,请将其修改为此问题.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐