mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
SET search_path = public;
|
||||
|
||||
DROP OPERATOR CLASS gist_seg_ops;
|
||||
DROP OPERATOR CLASS gist_seg_ops USING gist;
|
||||
|
||||
DROP OPERATOR CLASS seg_ops;
|
||||
DROP OPERATOR CLASS seg_ops USING btree;
|
||||
|
||||
DROP FUNCTION gseg_same(seg, seg, internal);
|
||||
|
||||
@ -82,8 +82,4 @@ DROP FUNCTION seg_over_right(seg, seg);
|
||||
|
||||
DROP FUNCTION seg_over_left(seg, seg);
|
||||
|
||||
DROP TYPE seg;
|
||||
|
||||
DROP FUNCTION seg_out(seg);
|
||||
|
||||
DROP FUNCTION seg_in(cstring);
|
||||
DROP TYPE seg CASCADE;
|
||||
|
Reference in New Issue
Block a user