FS#64606 - Postgis broken with new postgresql 12.1 package
Attached to Project:
Community Packages
Opened by Johannes Schriewer (dunkelstern) - Friday, 22 November 2019, 07:53 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Thursday, 28 November 2019, 17:33 GMT
Opened by Johannes Schriewer (dunkelstern) - Friday, 22 November 2019, 07:53 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Thursday, 28 November 2019, 17:33 GMT
|
Details
If you try to migrate from a postgres 11.x instance to the
new postgres 12.1, Postgres will complain that the installed
PostGIS library is incompatible:
When running `pg_upgrade`: could not load library "$libdir/postgis-2.5": ERROR: could not load library "/usr/lib/postgresql/postgis-2.5.so": /usr/ lib/postgresql/postgis-2.5.so: undefined symbol: AllocSetContextCreateExtended could not load library "$libdir/rtpostgis-2.5": ERROR: incompatible library "/usr/lib/postgresql/rtpostgis-2.5.so": ver sion mismatch DETAIL: Server is version 12, library is version 11. I think it just needs a rebuild against postgres 12. |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Thursday, 28 November 2019, 17:33 GMT
Reason for closing: Implemented
Additional comments about closing: postgis 3.0.0-1
Thursday, 28 November 2019, 17:33 GMT
Reason for closing: Implemented
Additional comments about closing: postgis 3.0.0-1
pg_dump: error: query failed: ERROR: could not access file "$libdir/postgis-2.5": No such file or directory
Note the literal $libdir.
[pid 35726] stat("$libdir/postgis-2.5", 0x7ffdd59ef690) = -1 ENOENT (No such file or directory)
I didn't try using a manual backup and restore.
Then run:
alter extension postgis update;
as described on http://postgis.net/2019/10/20/postgis-3.0.0/
currently I am stuck
$ sudo pacman -S asp
$ asp export postgis
$ cd postgis
$ makepkg -s
$ sudo pacman -U postgis-2.5.3-2-x86_64.pkg.tar