postgresql/contrib/pg_trgm/uninstall_pg_trgm.sql
Neil Conway 48fb696753 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.
2006-03-13 18:04:58 +00:00

36 lines
666 B
PL/PgSQL

SET search_path = public;
BEGIN;
DROP OPERATOR CLASS gist_trgm_ops USING gist;
DROP FUNCTION gtrgm_same(gtrgm, gtrgm, internal);
DROP FUNCTION gtrgm_union(bytea, internal);
DROP FUNCTION gtrgm_picksplit(internal, internal);
DROP FUNCTION gtrgm_penalty(internal,internal,internal);
DROP FUNCTION gtrgm_decompress(internal);
DROP FUNCTION gtrgm_compress(internal);
DROP FUNCTION gtrgm_consistent(gtrgm,internal,int4);
DROP TYPE gtrgm CASCADE;
DROP OPERATOR % (text, text);
DROP FUNCTION similarity_op(text,text);
DROP FUNCTION similarity(text,text);
DROP FUNCTION show_trgm(text);
DROP FUNCTION show_limit();
DROP FUNCTION set_limit(float4);
COMMIT;