Opened 13 years ago
Closed 13 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 , 13 years ago
Summary: | extension upgrade from alpha6 to alpha7SVN -wktgeomval type can't be dropped → upgrade from alpha6 to alpha7SVN -wktgeomval type can't be dropped |
---|
comment:2 by , 13 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 , 13 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 , 13 years ago
Summary: | upgrade from alpha6 to alpha7SVN -wktgeomval type can't be dropped → upgrade from alpha6 to alpha7SVN: wktgeomval type can't be dropped; cannot change input parameter nodata |
---|
comment:5 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
r9350 fixes the missing DROP, exposing next issue, which I'd file a separate bug for
comment:9 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 , 13 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 , 13 years ago
Summary: | upgrade from alpha6 to alpha7SVN: wktgeomval type can't be dropped; cannot change input parameter nodata → upgrade 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 , 13 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:14 by , 13 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.
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.
before I can close this out.