]> granicus.if.org Git - postgresql/blob - contrib/tsearch2/untsearch.sql.in
Reduce WAL activity for page splits:
[postgresql] / contrib / tsearch2 / untsearch.sql.in
1 BEGIN;
2
3 --Be careful !!!
4 --script drops all indices, triggers and columns with types defined
5 --in tsearch2.sql
6
7
8 DROP OPERATOR CLASS gin_tsvector_ops USING gin CASCADE;
9
10 DROP OPERATOR CLASS gist_tsvector_ops USING gist CASCADE;
11
12
13 DROP OPERATOR || (tsvector, tsvector);
14 DROP OPERATOR @@ (tsvector, tsquery);
15 DROP OPERATOR @@ (tsquery, tsvector);
16
17 --DROP AGGREGATE stat(tsvector);
18
19 DROP TABLE pg_ts_dict;
20 DROP TABLE pg_ts_parser;
21 DROP TABLE pg_ts_cfg;
22 DROP TABLE pg_ts_cfgmap;
23
24 DROP TYPE tokentype CASCADE;
25 DROP TYPE tokenout CASCADE;
26 DROP TYPE tsvector CASCADE;
27 DROP TYPE tsquery CASCADE;
28 DROP TYPE gtsvector CASCADE;
29 --DROP TYPE tsstat CASCADE;
30 DROP TYPE statinfo CASCADE;
31 DROP TYPE tsdebug CASCADE;
32 DROP TYPE gtsq CASCADE;
33
34 DROP FUNCTION lexize(oid, text) ;
35 DROP FUNCTION lexize(text, text);
36 DROP FUNCTION lexize(text);
37 DROP FUNCTION set_curdict(int);
38 DROP FUNCTION set_curdict(text);
39 DROP FUNCTION dex_init(internal);
40 DROP FUNCTION dex_lexize(internal,internal,int4);
41 DROP FUNCTION snb_en_init(internal);
42 DROP FUNCTION snb_lexize(internal,internal,int4);
43 DROP FUNCTION snb_ru_init_koi8(internal);
44 DROP FUNCTION snb_ru_init_utf8(internal);
45 DROP FUNCTION spell_init(internal);
46 DROP FUNCTION spell_lexize(internal,internal,int4);
47 DROP FUNCTION thesaurus_init(internal);
48 DROP FUNCTION thesaurus_lexize(internal,internal,int4,internal);
49 DROP FUNCTION syn_init(internal);
50 DROP FUNCTION syn_lexize(internal,internal,int4);
51 DROP FUNCTION set_curprs(int);
52 DROP FUNCTION set_curprs(text);
53 DROP FUNCTION prsd_start(internal,int4);
54 DROP FUNCTION prsd_getlexeme(internal,internal,internal);
55 DROP FUNCTION prsd_end(internal);
56 DROP FUNCTION prsd_lextype(internal);
57 DROP FUNCTION prsd_headline(internal,internal,internal);
58 DROP FUNCTION set_curcfg(int);
59 DROP FUNCTION set_curcfg(text);
60 DROP FUNCTION show_curcfg();
61 DROP FUNCTION gtsvector_compress(internal);
62 DROP FUNCTION gtsvector_decompress(internal);
63 DROP FUNCTION gtsvector_penalty(internal,internal,internal);
64 DROP FUNCTION gtsvector_picksplit(internal, internal);
65 DROP FUNCTION gtsvector_union(internal, internal);
66 DROP FUNCTION gtsq_compress(internal);
67 DROP FUNCTION gtsq_decompress(internal);
68 DROP FUNCTION gtsq_penalty(internal,internal,internal);
69 DROP FUNCTION gtsq_picksplit(internal, internal);
70 DROP FUNCTION gtsq_union(bytea, internal);
71 DROP FUNCTION reset_tsearch();
72 DROP FUNCTION tsearch2() CASCADE;
73 DROP FUNCTION _get_parser_from_curcfg();
74
75 END;