1/* contrib/dict_xsyn/dict_xsyn--1.0.sql */ 2 3-- complain if script is sourced in psql, rather than via CREATE EXTENSION 4\echo Use "CREATE EXTENSION dict_xsyn" to load this file. \quit 5 6CREATE FUNCTION dxsyn_init(internal) 7 RETURNS internal 8 AS 'MODULE_PATHNAME' 9 LANGUAGE C STRICT; 10 11CREATE FUNCTION dxsyn_lexize(internal, internal, internal, internal) 12 RETURNS internal 13 AS 'MODULE_PATHNAME' 14 LANGUAGE C STRICT; 15 16CREATE TEXT SEARCH TEMPLATE xsyn_template ( 17 LEXIZE = dxsyn_lexize, 18 INIT = dxsyn_init 19); 20 21CREATE TEXT SEARCH DICTIONARY xsyn ( 22 TEMPLATE = xsyn_template 23); 24 25COMMENT ON TEXT SEARCH DICTIONARY xsyn IS 'eXtended synonym dictionary'; 26