[postgis-tickets] [PostGIS] #5458: Redefine postgis.gdal_datapath not allowed when going from no minor-lib version --with-minor-lib-version

PostGIS trac at osgeo.org
Wed Jul 26 18:55:00 PDT 2023


#5458: Redefine postgis.gdal_datapath not allowed when going from no minor-lib
version  --with-minor-lib-version
-----------------------------------+---------------------------
 Reporter:  robe                   |      Owner:  strk
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:  PostGIS 3.4.0
Component:  build/upgrade/install  |    Version:  3.3.x
 Keywords:                         |
-----------------------------------+---------------------------
 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
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5458>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list