[postgis-tickets] [PostGIS] #4185: Can't upgrade postgis raster

PostGIS trac at osgeo.org
Sat Sep 22 03:34:10 PDT 2018


#4185: Can't upgrade postgis raster
------------------------------------+---------------------------
  Reporter:  robe                   |      Owner:  strk
      Type:  defect                 |     Status:  new
  Priority:  blocker                |  Milestone:  PostGIS 3.0.0
 Component:  build/upgrade/install  |    Version:  trunk
Resolution:                         |   Keywords:
------------------------------------+---------------------------

Comment (by strk):

 Is it run_test.pl trying to CREATE EXTENSION postgis_raster for 2.5.0 ?
 As it doesn't really make sense to even try ...

 It should only happen IF  the coming-from version has split raster,
 as per:

 {{{

         if ( $OPT_WITH_RASTER && (
                 # NOTE: this code is assuming that the default version
                 # (!$OPT_UPGRADE_FROM) has split raster extension
                 ! $OPT_UPGRADE_FROM ||
                 has_split_raster_ext($OPT_UPGRADE_FROM)
 }}}

 The has_split_raster_ext perl subroutine is as follows:
 {{{
 sub has_split_raster_ext
 {
   my $fullver = shift;
   my @ver = split(/\./, $fullver);
   return 0 if ( $ver[0] < 2 );
   return 0 if ( $ver[0] == 2 && $ver[1] < 5 );
   return 1;
 }
 }}}

 Can you try running that routine in isolation with "2.5.0rc3dev"
 as input parameter ? It returns 0 here with perl v5.26.1

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4185#comment:1>
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