#5458 closed defect (wontfix)

Redefine postgis.gdal_datapath not allowed when going from no minor-lib version --with-minor-lib-version

Reported by: robe Owned by: strk
Priority: medium Milestone: PostGIS 3.4.0
Component: build Version: 3.3.x
Keywords: Cc:

Description

I was testing on demo.postgis.net, by switching my build to use

—with-minor-lib-version

The prior build and what I have installed in all the databases is without that switch

When I run:

SELECT postgis_extensions_upgrade();

I get these errors:

NOTICE:  Updating extension postgis 3.4.0dev
NOTICE:  Updating extension postgis_raster 3.4.0dev

ERROR:  attempt to redefine parameter "postgis.gdal_datapath"
CONTEXT:  SQL statement "ALTER EXTENSION postgis_raster UPDATE TO "ANY";ALTER EXTENSION postgis_raster UPDATE TO "3.4.0dev""
PL/pgSQL function postgis_extensions_upgrade(text) line 88 at EXECUTE 

This is on PG16-beta1 if that matters. I'm going to try on my dev to see if I can replicate the issue. I thought we had this issue fixed a while ago when we were still using the minor version in our files. So not sure if we just never fixed, or our fix is broken

Change History (1)

comment:1 by robe, 12 months ago

Resolution: wontfix
Status: newclosed

Okay interestingly I was able to upgrade the nyc database on demo.postgis.net which also has postgis_raster on it.

and when I closed out my original connection and tried again to upgrade the database I was trying to upgrade, it went thru this time.

So maybe it's only an issue with if the old .so is loaded in the same connection as the new one you are trying to load.

I'm going to close this out as a won't fix. Feel free to reopen if you think anything can be done about this.

Note: See TracTickets for help on using tickets.