Opened 12 years ago

Closed 12 years ago

#1630 closed defect (fixed)

upgrade from alpha6 to beta1: wktgeomval type can't be dropped; cannot change input parameter nodata; can't drop raster_columns

Reported by: robe Owned by: strk
Priority: blocker Milestone: PostGIS 2.0.0
Component: build Version: master
Keywords: Cc:

Description

cannot drop because extension depends on it.

Change History (15)

comment:1 by robe, 12 years ago

Summary: extension upgrade from alpha6 to alpha7SVN -wktgeomval type can't be droppedupgrade from alpha6 to alpha7SVN -wktgeomval type can't be dropped

This I think affects all upgrades from alpha6 and prior.

fixed 2 issues at r9342, r9341 — still one more because someone renamed an arg and didn't add to the drop list.

So have the cannot change input parameter nodata

before I can close this out.

comment:2 by strk, 12 years ago

Are you planning to fix this yourself robe ? Or name the function with argument changed for someone else to fix.

comment:3 by robe, 12 years ago

strk — actually if you could do it that would be great. I suspect its a function Pierre did but can't remember the one he did last and not near my compiler to even test. I would like this to happen before Paul calls his beta. I assume the fact I called it a blocker will prevent him from going trigger happy :)

comment:4 by strk, 12 years ago

Summary: upgrade from alpha6 to alpha7SVN -wktgeomval type can't be droppedupgrade from alpha6 to alpha7SVN: wktgeomval type can't be dropped; cannot change input parameter nodata

comment:5 by strk, 12 years ago

Owner: changed from robe to strk
Status: newassigned

Seems to be this:

 -- Major variant
-CREATE OR REPLACE FUNCTION st_clip(rast raster, band int, geom geometry, nodata float8[] DEFAULT NULL, trimraster boolean DEFAULT FALSE)
+CREATE OR REPLACE FUNCTION st_clip(rast raster, band int, geom geometry, nodataval double precision[] DEFAULT NULL, crop boolean DEFAULT TRUE)

Which is Pierre's at r9336

comment:6 by strk, 12 years ago

Resolution: fixed
Status: assignedclosed

r9350 fixes the missing DROP, exposing next issue, which I'd file a separate bug for

comment:7 by strk, 12 years ago

I guess r9350 was dropping the wrong function. r9351 seems to do it.

comment:8 by pracine, 12 years ago

Sorry about that. Thanks strk.

comment:9 by robe, 12 years ago

Resolution: fixed
Status: closedreopened

I'm afraid there is still an issue here, but not sure if it's an issue going from alpha6. I just tried upgrading an alpha5 to beta1 with extensions and get this:

Cannot change name of input parameter "nodata". Use Drop function.

comment:10 by pracine, 12 years ago

I guess the nodata array versions are missing in rtpostgis_drop.sql.in.c:

DROP FUNCTION IF EXISTS st_clip(raster, geometry, float8[], boolean);
DROP FUNCTION IF EXISTS st_clip(raster, int, geometry, float8[], boolean);

Would that do the job?

comment:11 by robe, 12 years ago

Summary: upgrade from alpha6 to alpha7SVN: wktgeomval type can't be dropped; cannot change input parameter nodataupgrade from alpha6 to beta1: wktgeomval type can't be dropped; cannot change input parameter nodata; can't drop raster_columns

Well this is mighty annoying. My luck for not having time to test the final beta1. Just tried to upgrade my freshly installed alpha6 to beta1 and got —

Can't drop raster_columns because other objects depend on it. extensions postgis depends on it.

comment:12 by robe, 12 years ago

Okay I think I fixed the drop raster_columns / wktgeomval issue in r9382. Not sure why I didn't run into this before. I thought I tested it earlier on.

Anyrate I suspect this is a bug in the extension model itself since to fix I had to drop sideline types created by the postgresql system which we didn't explicitly create but depend on things we did create. Seems silly to me it doesn't drop them as part of the ALTER EXTENSION .. DROP VIEW , DROP TYPE process. I'll report upstream to confirm

comment:13 by robe, 12 years ago

make that r9382 and r9383

comment:14 by robe, 12 years ago

More fixes at r9384. After that my upgrade from alpah6 to beta1 works. But I cheated and hand-coded so will confirm later.

comment:15 by robe, 12 years ago

Resolution: fixed
Status: reopenedclosed

Seems to work.

Note: See TracTickets for help on using tickets.