#5489 closed defect (fixed)

Upgrade from 3.1.1: ERROR: cannot drop function st_intersects(raster,geometry,integer) because other objects depend on it

Reported by: strk Owned by: strk
Priority: medium Milestone: PostGIS 3.4.1
Component: build Version: 3.4.x
Keywords: Cc:

Description

Another case of upgrade trouble:

=# select postgis_extensions_upgrade();
NOTICE:  Updating extension postgis from 3.1.1 to 3.4.0
NOTICE:  Updating extension postgis_sfcgal from 3.1.1 to 3.4.0
NOTICE:  Updating extension postgis_raster from 3.1.1 to 3.4.0
ERROR:  cannot drop function st_intersects(raster,geometry,integer) because other objects depend on it

See also #5488

Change History (6)

comment:1 by strk, 16 months ago

Current signatures (3.5.0dev, same as 2.0.0):

 -- 1. st_intersects(rast1 raster, nband1 integer, rast2 raster, nband2 integer)
 -- 2. st_intersects(rast1 raster, rast2 raster)
 -- 3. st_intersects(geom geometry, rast raster, nband integer DEFAULT NULL)
 -- 4. st_intersects(rast raster, geom geometry, nband integer DEFAULT NULL)
 -- 5. st_intersects(rast raster, nband integer, geom geometry)

A lot of ST_Intersects signatures are dropped in 2.0.0, which doesn't make much sense as 2.0 was the first version including raster.

I think I'm going to stop dropping them all and call it a day.

comment:2 by strk, 16 months ago

The other 2 internal signatures which did not change from 2.0.0 to 3.5.0dev are:

  1. _st_intersects(geom geometry, rast raster, nband integer DEFAULT NULL)
  2. _st_intersects(rast1 raster, nband1 integer, rast2 raster, nband2 integer)

Additionally stable-2.0 (dropped in stable-2.1) had:

  1. _st_intersects(rast raster, geom geometry, nband integer DEFAULT NULL)

comment:3 by strk, 16 months ago

Bug confirmed by CI: https://woodie.osgeo.org/repos/30/pipeline/865/7 about to push the fix

comment:5 by Sandro Santilli <strk@…>, 16 months ago

In 99ddb20a/git:

Fix upgrades in presence of views using st_intersects(..raster..)

Includes regress tests

References #5489 in master branch (3.5.0dev)

comment:6 by Sandro Santilli <strk@…>, 16 months ago

Resolution: fixed
Status: newclosed

In df07c29/git:

Fix upgrades in presence of views using st_intersects(..raster..)

Includes regress tests

Closes #5489 in 3.4 branch (3.4.1dev)

Note: See TracTickets for help on using tickets.