如何使用PostGIS升级PostgreSQL?

如何使用PostGIS升级PostgreSQL?,第1张

概述我正在运行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/postgresq 我正在运行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脚本中的逻辑.如果您对该程序有任何进一步的问题,请将其修改为此问题. 总结

以上是内存溢出为你收集整理的如何使用PostGIS升级PostgreSQL?全部内容,希望文章能够帮你解决如何使用PostGIS升级PostgreSQL?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1181834.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-02
下一篇 2022-06-02

发表评论

登录后才能评论

评论列表(0条)

保存