diff options
| author | Neil Conway <neilc@samurai.com> | 2006-03-13 18:04:58 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2006-03-13 18:04:58 +0000 |
| commit | 48fb696753e267447f99914c7968d0b4ffb5c5dc (patch) | |
| tree | f0dd377d6f11f5ed93dd9f89beda623de53d5cc6 /contrib/cube | |
| parent | 4a85bf3eaff0612087934e63cd4abd8b8fe67575 (diff) | |
| download | postgresql-48fb696753e267447f99914c7968d0b4ffb5c5dc.tar.gz | |
Fix a number of syntax errors in contrib modules' uninstall scripts.
Most of the changes add the mandatory USING clause to DROP OPERATOR
CLASS statements. DROP TYPE is now DROP TYPE CASCADE; without
CASCADE a DROP TYPE fails due to the circular dependency on the
type's I/O functions. The DROP FUNCTION statements for the I/O
functions have been removed, as DROP TYPE CASCADE removes them
automatically. Patch from Michael Fuhr.
Diffstat (limited to 'contrib/cube')
| -rw-r--r-- | contrib/cube/uninstall_cube.sql | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/contrib/cube/uninstall_cube.sql b/contrib/cube/uninstall_cube.sql index a6a177703a..6ae8ee15cc 100644 --- a/contrib/cube/uninstall_cube.sql +++ b/contrib/cube/uninstall_cube.sql @@ -1,8 +1,8 @@ SET search_path = public; -DROP OPERATOR CLASS gist_cube_ops; +DROP OPERATOR CLASS gist_cube_ops USING gist; -DROP OPERATOR CLASS cube_ops; +DROP OPERATOR CLASS cube_ops USING btree; DROP FUNCTION g_cube_same(cube, cube, internal); @@ -86,8 +86,4 @@ DROP CAST (text AS cube); DROP FUNCTION cube(text); -DROP FUNCTION cube_out(cube); - -DROP TYPE cube; - -DROP FUNCTION cube_in(cstring); +DROP TYPE cube CASCADE; |
