Opened 13 years ago
Closed 13 years ago
#1153 closed defect (fixed)
uninstall script is broken
Reported by: | robe | Owned by: | strk |
---|---|---|---|
Priority: | medium | Milestone: | PostGIS 2.0.0 |
Component: | build | Version: | master |
Keywords: | Cc: |
Description
The mix of DROP FUNCTION gives error ERROR: function st_minimumboundingcircle(geometry) does not exist
I think this may be because of some of the functions I took out.
All these calls should be really DROP IF EXISTS. We shouldn't have an DROP FUNCTION. But there appers to be a mix of both.
As well as those hideous drop cascades.
Change History (7)
comment:1 by , 13 years ago
Priority: | high → medium |
---|
comment:2 by , 13 years ago
Component: | postgis → build/upgrade/install |
---|---|
Owner: | changed from | to
comment:3 by , 13 years ago
comment:4 by , 13 years ago
pg_dump --schema-only --clean # seems to be going in the right direction. Mind you: it does do CASCADE!
comment:5 by , 13 years ago
As of PostgreSQL 8.4.9, pg_dump is bogus, producing these lines:
DROP TYPE public.spheroid CASCADE; DROP FUNCTION public.spheroid_out(spheroid); DROP FUNCTION public.spheroid_in(cstring);
which are clearly in the wrong order
comment:6 by , 13 years ago
Beside, the other order would also be broken as you can't drop one w/out dropping the other. Which also means you'll _need_ the CASCADE.
comment:7 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
r8505 fixes the script manually. Please file another ticket if there are more issues with it. NOTE: no "IF EXISTS" is added, nor any "CASCADE" was dropped.
Did anyone consider generating the script from postgis.sql ?