2007-10-16 05:36:50 +08:00
|
|
|
-- Adjust this setting to control where the objects get created.
|
|
|
|
SET search_path = public;
|
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION testprs_start(internal, int4)
|
|
|
|
RETURNS internal
|
|
|
|
AS 'MODULE_PATHNAME'
|
|
|
|
LANGUAGE C STRICT;
|
2007-10-16 05:36:50 +08:00
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION testprs_getlexeme(internal, internal, internal)
|
|
|
|
RETURNS internal
|
|
|
|
AS 'MODULE_PATHNAME'
|
|
|
|
LANGUAGE C STRICT;
|
2007-10-16 05:36:50 +08:00
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION testprs_end(internal)
|
|
|
|
RETURNS void
|
|
|
|
AS 'MODULE_PATHNAME'
|
|
|
|
LANGUAGE C STRICT;
|
2007-10-16 05:36:50 +08:00
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION testprs_lextype(internal)
|
|
|
|
RETURNS internal
|
|
|
|
AS 'MODULE_PATHNAME'
|
|
|
|
LANGUAGE C STRICT;
|
2007-10-16 05:36:50 +08:00
|
|
|
|
|
|
|
CREATE TEXT SEARCH PARSER testparser (
|
|
|
|
START = testprs_start,
|
|
|
|
GETTOKEN = testprs_getlexeme,
|
|
|
|
END = testprs_end,
|
|
|
|
HEADLINE = pg_catalog.prsd_headline,
|
|
|
|
LEXTYPES = testprs_lextype
|
|
|
|
);
|