加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何使用PostGIS升级PostgreSQL?

发布时间:2020-12-13 18:10:45 所属栏目:百科 来源:网络整理
导读:我正在运行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 confi
我正在运行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脚本中的逻辑.如果您对该程序有任何进一步的问题,请将其修改为此问题.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读