PostgreSQL服务器从9.x升级到10最简单的方式

时间:2018-05-10 01:40:15

标签: postgresql postgresql-10

我一直在尝试使用pg_upgrade将我的postgres服务器从9.6升级到10。但是,坚持一致性检查所需的库。 loadable_libraried.txt读取:

could not load library "$libdir/postgis_topology-2.3": 
ERROR:  could not access file "$libdir/postgis_topology-2.3": No such file or directory

我第一次尝试这个。任何建议将不胜感激。谢谢!

1 个答案:

答案 0 :(得分:0)

如果您在PostgreSQL 9.6安装上安装了PostGis,则还需要将其添加到PostgreSQL 10安装中。 如果您没有它,请下载并安装它:

wget https://download.osgeo.org/postgis/source/postgis-2.3.7.tar.gz
tar zxf postgis-2.3.7.tar.gz
cd postgis-2.3.7
./configure --with-pgconfig=/PATH_TO_POSTGRESQL_10_pg_config
make
make install

然后继续使用pg_upgrade。 (您可能需要使用其他扩展重复此过程。)

相关问题