2003-07-21 18:27:44 +08:00
|
|
|
BEGIN;
|
|
|
|
|
|
|
|
--Be careful !!!
|
|
|
|
--script drops all indices, triggers and columns with types defined
|
|
|
|
--in tsearch2.sql
|
|
|
|
|
|
|
|
|
|
|
|
DROP OPERATOR CLASS gist_tsvector_ops USING gist CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
DROP OPERATOR || (tsvector, tsvector);
|
|
|
|
DROP OPERATOR @@ (tsvector, tsquery);
|
|
|
|
DROP OPERATOR @@ (tsquery, tsvector);
|
|
|
|
|
2004-06-01 00:51:56 +08:00
|
|
|
--DROP AGGREGATE stat(tsvector);
|
2003-07-21 18:27:44 +08:00
|
|
|
|
|
|
|
DROP TABLE pg_ts_dict;
|
|
|
|
DROP TABLE pg_ts_parser;
|
|
|
|
DROP TABLE pg_ts_cfg;
|
|
|
|
DROP TABLE pg_ts_cfgmap;
|
|
|
|
|
|
|
|
DROP TYPE tokentype CASCADE;
|
|
|
|
DROP TYPE tokenout CASCADE;
|
|
|
|
DROP TYPE tsvector CASCADE;
|
|
|
|
DROP TYPE tsquery CASCADE;
|
|
|
|
DROP TYPE gtsvector CASCADE;
|
2004-06-01 00:51:56 +08:00
|
|
|
--DROP TYPE tsstat CASCADE;
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP TYPE statinfo CASCADE;
|
2003-08-06 17:19:21 +08:00
|
|
|
DROP TYPE tsdebug CASCADE;
|
|
|
|
|
2003-07-21 18:27:44 +08:00
|
|
|
|
|
|
|
DROP FUNCTION lexize(oid, text) ;
|
|
|
|
DROP FUNCTION lexize(text, text);
|
|
|
|
DROP FUNCTION lexize(text);
|
|
|
|
DROP FUNCTION set_curdict(int);
|
|
|
|
DROP FUNCTION set_curdict(text);
|
2005-05-04 00:51:00 +08:00
|
|
|
DROP FUNCTION dex_init(internal);
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP FUNCTION dex_lexize(internal,internal,int4);
|
2005-05-04 00:51:00 +08:00
|
|
|
DROP FUNCTION snb_en_init(internal);
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP FUNCTION snb_lexize(internal,internal,int4);
|
2005-05-04 00:51:00 +08:00
|
|
|
DROP FUNCTION snb_ru_init(internal);
|
|
|
|
DROP FUNCTION spell_init(internal);
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP FUNCTION spell_lexize(internal,internal,int4);
|
2006-05-31 22:05:31 +08:00
|
|
|
DROP FUNCTION thesaurus_init(internal);
|
|
|
|
DROP FUNCTION thesaurus_lexize(internal,internal,int4);
|
2005-05-04 00:51:00 +08:00
|
|
|
DROP FUNCTION syn_init(internal);
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP FUNCTION syn_lexize(internal,internal,int4);
|
|
|
|
DROP FUNCTION set_curprs(int);
|
|
|
|
DROP FUNCTION set_curprs(text);
|
|
|
|
DROP FUNCTION prsd_start(internal,int4);
|
|
|
|
DROP FUNCTION prsd_getlexeme(internal,internal,internal);
|
|
|
|
DROP FUNCTION prsd_end(internal);
|
|
|
|
DROP FUNCTION prsd_lextype(internal);
|
|
|
|
DROP FUNCTION prsd_headline(internal,internal,internal);
|
|
|
|
DROP FUNCTION set_curcfg(int);
|
|
|
|
DROP FUNCTION set_curcfg(text);
|
|
|
|
DROP FUNCTION show_curcfg();
|
|
|
|
DROP FUNCTION gtsvector_compress(internal);
|
|
|
|
DROP FUNCTION gtsvector_decompress(internal);
|
|
|
|
DROP FUNCTION gtsvector_penalty(internal,internal,internal);
|
|
|
|
DROP FUNCTION gtsvector_picksplit(internal, internal);
|
2004-03-30 23:45:33 +08:00
|
|
|
DROP FUNCTION gtsvector_union(internal, internal);
|
2003-07-21 18:27:44 +08:00
|
|
|
DROP FUNCTION reset_tsearch();
|
|
|
|
DROP FUNCTION tsearch2() CASCADE;
|
2003-08-06 17:19:21 +08:00
|
|
|
DROP FUNCTION _get_parser_from_curcfg();
|
2003-07-21 18:27:44 +08:00
|
|
|
|
|
|
|
END;
|