1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +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:
Neil Conway
2006-03-13 18:04:58 +00:00
parent 4a85bf3eaf
commit 48fb696753
9 changed files with 56 additions and 137 deletions

View File

@ -2,7 +2,7 @@ SET search_path = public;
BEGIN;
DROP OPERATOR CLASS gist_trgm_ops;
DROP OPERATOR CLASS gist_trgm_ops USING gist;
DROP FUNCTION gtrgm_same(gtrgm, gtrgm, internal);
@ -18,11 +18,7 @@ DROP FUNCTION gtrgm_compress(internal);
DROP FUNCTION gtrgm_consistent(gtrgm,internal,int4);
DROP TYPE gtrgm;
DROP FUNCTION gtrgm_out(gtrgm);
DROP FUNCTION gtrgm_in(cstring);
DROP TYPE gtrgm CASCADE;
DROP OPERATOR % (text, text);