我运行的PostgreSQL 9.1,我试图升级到PostgreSQL 9.3:如何用PostGIS升级PostgreSQL?
$ /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,我已经使用PostgreSQL使用apt-get
安装PostgreSQL。
任何人管理它?
我试着找到任何名为'''''postgis-1.5'''的目录,并根据它的位置,推断它应该在新版本中复制的位置。如果这不起作用,也许你应该卸载postgis1.5,升级,然后使用''CREATE EXTENSION'''添加postgis 2.1。 – amenadiel
我可以使用具有几何数据的数据库来卸载postgis吗? –