+-- TOC entry 57 (OID 618606)
+-- Name: pg_ts_dict; Type: TABLE; Schema: public; Owner: postgres
+--
+
+CREATE TABLE pg_ts_dict (
+ dict_name text NOT NULL,
+ dict_init regprocedure,
+ dict_initoption text,
+ dict_lexize regprocedure NOT NULL,
+ dict_comment text
+);
+
+
+--
+-- TOC entry 58 (OID 618606)
+-- Name: pg_ts_dict; Type: ACL; Schema: public; Owner: postgres
+--
+
+REVOKE ALL ON TABLE pg_ts_dict FROM PUBLIC;
+GRANT SELECT ON TABLE pg_ts_dict TO rich;
+GRANT SELECT ON TABLE pg_ts_dict TO "www-data";
+
+
+--
+-- TOC entry 116 (OID 618613)
+-- Name: lexize(oid, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION lexize(oid, text) RETURNS text[]
+ AS '$libdir/tsearch2', 'lexize'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 117 (OID 618614)
+-- Name: lexize(text, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION lexize(text, text) RETURNS text[]
+ AS '$libdir/tsearch2', 'lexize_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 118 (OID 618615)
+-- Name: lexize(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION lexize(text) RETURNS text[]
+ AS '$libdir/tsearch2', 'lexize_bycurrent'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 119 (OID 618616)
+-- Name: set_curdict(integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curdict(integer) RETURNS void
+ AS '$libdir/tsearch2', 'set_curdict'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 120 (OID 618617)
+-- Name: set_curdict(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curdict(text) RETURNS void
+ AS '$libdir/tsearch2', 'set_curdict_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 121 (OID 618618)
+-- Name: dex_init(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION dex_init(text) RETURNS internal
+ AS '$libdir/tsearch2', 'dex_init'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 122 (OID 618619)
+-- Name: dex_lexize(internal, internal, integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION dex_lexize(internal, internal, integer) RETURNS internal
+ AS '$libdir/tsearch2', 'dex_lexize'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 123 (OID 618621)
+-- Name: snb_en_init(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION snb_en_init(text) RETURNS internal
+ AS '$libdir/tsearch2', 'snb_en_init'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 124 (OID 618622)
+-- Name: snb_lexize(internal, internal, integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION snb_lexize(internal, internal, integer) RETURNS internal
+ AS '$libdir/tsearch2', 'snb_lexize'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 125 (OID 618624)
+-- Name: snb_ru_init(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION snb_ru_init(text) RETURNS internal
+ AS '$libdir/tsearch2', 'snb_ru_init'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 126 (OID 618626)
+-- Name: spell_init(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION spell_init(text) RETURNS internal
+ AS '$libdir/tsearch2', 'spell_init'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 127 (OID 618627)
+-- Name: spell_lexize(internal, internal, integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION spell_lexize(internal, internal, integer) RETURNS internal
+ AS '$libdir/tsearch2', 'spell_lexize'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 128 (OID 618629)
+-- Name: syn_init(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION syn_init(text) RETURNS internal
+ AS '$libdir/tsearch2', 'syn_init'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 129 (OID 618630)
+-- Name: syn_lexize(internal, internal, integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION syn_lexize(internal, internal, integer) RETURNS internal
+ AS '$libdir/tsearch2', 'syn_lexize'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 59 (OID 618632)
+-- Name: pg_ts_parser; Type: TABLE; Schema: public; Owner: postgres
+--
+
+CREATE TABLE pg_ts_parser (
+ prs_name text NOT NULL,
+ prs_start regprocedure NOT NULL,
+ prs_nexttoken regprocedure NOT NULL,
+ prs_end regprocedure NOT NULL,
+ prs_headline regprocedure NOT NULL,
+ prs_lextype regprocedure NOT NULL,
+ prs_comment text
+);
+
+
+--
+-- TOC entry 60 (OID 618632)
+-- Name: pg_ts_parser; Type: ACL; Schema: public; Owner: postgres
+--
+
+REVOKE ALL ON TABLE pg_ts_parser FROM PUBLIC;
+GRANT SELECT ON TABLE pg_ts_parser TO rich;
+GRANT SELECT ON TABLE pg_ts_parser TO "www-data";
+
+
+--
+-- TOC entry 5 (OID 618640)
+-- Name: tokentype; Type: TYPE; Schema: public; Owner: postgres
+--
+
+CREATE TYPE tokentype AS (
+ tokid integer,
+ alias text,
+ descr text
+);
+
+
+--
+-- TOC entry 130 (OID 618641)
+-- Name: token_type(integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION token_type(integer) RETURNS SETOF tokentype
+ AS '$libdir/tsearch2', 'token_type'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 131 (OID 618642)
+-- Name: token_type(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION token_type(text) RETURNS SETOF tokentype
+ AS '$libdir/tsearch2', 'token_type_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 132 (OID 618643)
+-- Name: token_type(); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION token_type() RETURNS SETOF tokentype
+ AS '$libdir/tsearch2', 'token_type_current'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 133 (OID 618644)
+-- Name: set_curprs(integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curprs(integer) RETURNS void
+ AS '$libdir/tsearch2', 'set_curprs'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 134 (OID 618645)
+-- Name: set_curprs(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curprs(text) RETURNS void
+ AS '$libdir/tsearch2', 'set_curprs_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 6 (OID 618647)
+-- Name: tokenout; Type: TYPE; Schema: public; Owner: postgres
+--
+
+CREATE TYPE tokenout AS (
+ tokid integer,
+ token text
+);
+
+
+--
+-- TOC entry 135 (OID 618648)
+-- Name: parse(oid, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION parse(oid, text) RETURNS SETOF tokenout
+ AS '$libdir/tsearch2', 'parse'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 136 (OID 618649)
+-- Name: parse(text, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION parse(text, text) RETURNS SETOF tokenout
+ AS '$libdir/tsearch2', 'parse_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 137 (OID 618650)
+-- Name: parse(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION parse(text) RETURNS SETOF tokenout
+ AS '$libdir/tsearch2', 'parse_current'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 138 (OID 618651)
+-- Name: prsd_start(internal, integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION prsd_start(internal, integer) RETURNS internal
+ AS '$libdir/tsearch2', 'prsd_start'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 139 (OID 618652)
+-- Name: prsd_getlexeme(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION prsd_getlexeme(internal, internal, internal) RETURNS integer
+ AS '$libdir/tsearch2', 'prsd_getlexeme'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 140 (OID 618653)
+-- Name: prsd_end(internal); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION prsd_end(internal) RETURNS void
+ AS '$libdir/tsearch2', 'prsd_end'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 141 (OID 618654)
+-- Name: prsd_lextype(internal); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION prsd_lextype(internal) RETURNS internal
+ AS '$libdir/tsearch2', 'prsd_lextype'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 142 (OID 618655)
+-- Name: prsd_headline(internal, internal, internal); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION prsd_headline(internal, internal, internal) RETURNS internal
+ AS '$libdir/tsearch2', 'prsd_headline'
+ LANGUAGE c;
+
+
+--
+-- TOC entry 61 (OID 618657)
+-- Name: pg_ts_cfg; Type: TABLE; Schema: public; Owner: postgres
+--
+
+CREATE TABLE pg_ts_cfg (
+ ts_name text NOT NULL,
+ prs_name text NOT NULL,
+ locale text
+);
+
+
+--
+-- TOC entry 62 (OID 618657)
+-- Name: pg_ts_cfg; Type: ACL; Schema: public; Owner: postgres
+--
+
+REVOKE ALL ON TABLE pg_ts_cfg FROM PUBLIC;
+GRANT SELECT ON TABLE pg_ts_cfg TO rich;
+GRANT SELECT ON TABLE pg_ts_cfg TO "www-data";
+
+
+--
+-- TOC entry 63 (OID 618664)
+-- Name: pg_ts_cfgmap; Type: TABLE; Schema: public; Owner: postgres
+--
+
+CREATE TABLE pg_ts_cfgmap (
+ ts_name text NOT NULL,
+ tok_alias text NOT NULL,
+ dict_name text[]
+);
+
+
+--
+-- TOC entry 64 (OID 618664)
+-- Name: pg_ts_cfgmap; Type: ACL; Schema: public; Owner: postgres
+--
+
+REVOKE ALL ON TABLE pg_ts_cfgmap FROM PUBLIC;
+GRANT SELECT ON TABLE pg_ts_cfgmap TO rich;
+GRANT SELECT ON TABLE pg_ts_cfgmap TO "www-data";
+
+
+--
+-- TOC entry 143 (OID 618671)
+-- Name: set_curcfg(integer); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curcfg(integer) RETURNS void
+ AS '$libdir/tsearch2', 'set_curcfg'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 144 (OID 618672)
+-- Name: set_curcfg(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION set_curcfg(text) RETURNS void
+ AS '$libdir/tsearch2', 'set_curcfg_byname'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 145 (OID 618673)
+-- Name: show_curcfg(); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION show_curcfg() RETURNS oid
+ AS '$libdir/tsearch2', 'show_curcfg'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 146 (OID 618735)
+-- Name: tsvector_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION tsvector_in(cstring) RETURNS tsvector
+ AS '$libdir/tsearch2', 'tsvector_in'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 147 (OID 618736)
+-- Name: tsvector_out(tsvector); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION tsvector_out(tsvector) RETURNS cstring
+ AS '$libdir/tsearch2', 'tsvector_out'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 7 (OID 618734)
+-- Name: tsvector; Type: TYPE; Schema: public; Owner: postgres
+--
+
+CREATE TYPE tsvector (
+ INTERNALLENGTH = variable,
+ INPUT = tsvector_in,
+ OUTPUT = tsvector_out,
+ ALIGNMENT = int4,
+ STORAGE = extended
+);
+
+
+--
+-- TOC entry 148 (OID 618738)
+-- Name: length(tsvector); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION length(tsvector) RETURNS integer
+ AS '$libdir/tsearch2', 'tsvector_length'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 149 (OID 618739)
+-- Name: to_tsvector(oid, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsvector(oid, text) RETURNS tsvector
+ AS '$libdir/tsearch2', 'to_tsvector'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 150 (OID 618740)
+-- Name: to_tsvector(text, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsvector(text, text) RETURNS tsvector
+ AS '$libdir/tsearch2', 'to_tsvector_name'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 151 (OID 618741)
+-- Name: to_tsvector(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsvector(text) RETURNS tsvector
+ AS '$libdir/tsearch2', 'to_tsvector_current'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 152 (OID 618742)
+-- Name: strip(tsvector); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION strip(tsvector) RETURNS tsvector
+ AS '$libdir/tsearch2', 'strip'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 153 (OID 618743)
+-- Name: setweight(tsvector, "char"); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION setweight(tsvector, "char") RETURNS tsvector
+ AS '$libdir/tsearch2', 'setweight'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 154 (OID 618744)
+-- Name: concat(tsvector, tsvector); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION concat(tsvector, tsvector) RETURNS tsvector
+ AS '$libdir/tsearch2', 'concat'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 194 (OID 618745)
+-- Name: ||; Type: OPERATOR; Schema: public; Owner: postgres
+--
+
+CREATE OPERATOR || (
+ PROCEDURE = concat,
+ LEFTARG = tsvector,
+ RIGHTARG = tsvector
+);
+
+
+--
+-- TOC entry 155 (OID 618747)
+-- Name: tsquery_in(cstring); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION tsquery_in(cstring) RETURNS tsquery
+ AS '$libdir/tsearch2', 'tsquery_in'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 156 (OID 618748)
+-- Name: tsquery_out(tsquery); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION tsquery_out(tsquery) RETURNS cstring
+ AS '$libdir/tsearch2', 'tsquery_out'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 8 (OID 618746)
+-- Name: tsquery; Type: TYPE; Schema: public; Owner: postgres
+--
+
+CREATE TYPE tsquery (
+ INTERNALLENGTH = variable,
+ INPUT = tsquery_in,
+ OUTPUT = tsquery_out,
+ ALIGNMENT = int4,
+ STORAGE = plain
+);
+
+
+--
+-- TOC entry 157 (OID 618750)
+-- Name: querytree(tsquery); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION querytree(tsquery) RETURNS text
+ AS '$libdir/tsearch2', 'tsquerytree'
+ LANGUAGE c STRICT;
+
+
+--
+-- TOC entry 158 (OID 618751)
+-- Name: to_tsquery(oid, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsquery(oid, text) RETURNS tsquery
+ AS '$libdir/tsearch2', 'to_tsquery'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 159 (OID 618752)
+-- Name: to_tsquery(text, text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsquery(text, text) RETURNS tsquery
+ AS '$libdir/tsearch2', 'to_tsquery_name'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 160 (OID 618753)
+-- Name: to_tsquery(text); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION to_tsquery(text) RETURNS tsquery
+ AS '$libdir/tsearch2', 'to_tsquery_current'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 161 (OID 618754)
+-- Name: exectsq(tsvector, tsquery); Type: FUNCTION; Schema: public; Owner: postgres
+--
+
+CREATE FUNCTION exectsq(tsvector, tsquery) RETURNS boolean
+ AS '$libdir/tsearch2', 'exectsq'
+ LANGUAGE c IMMUTABLE STRICT;
+
+
+--
+-- TOC entry 163 (OID 618755)
+-- Name: rexectsq(tsquery, tsvector); Type: FUNCTION; Schema: public; Owner: postgres