2002-10-19 02:41:22 +08:00
|
|
|
-- Adjust this setting to control where the objects get created.
|
|
|
|
SET search_path = public;
|
2001-08-08 00:47:43 +08:00
|
|
|
|
2005-01-26 16:04:04 +08:00
|
|
|
CREATE FUNCTION levenshtein (text,text) RETURNS int
|
2002-10-19 02:41:22 +08:00
|
|
|
AS 'MODULE_PATHNAME','levenshtein'
|
2005-01-26 16:04:04 +08:00
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2002-10-19 02:41:22 +08:00
|
|
|
|
2005-01-26 16:04:04 +08:00
|
|
|
CREATE FUNCTION metaphone (text,int) RETURNS text
|
2002-10-19 02:41:22 +08:00
|
|
|
AS 'MODULE_PATHNAME','metaphone'
|
2005-01-26 16:04:04 +08:00
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2001-08-08 02:16:01 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION soundex(text) RETURNS text
|
2002-10-19 02:41:22 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'soundex'
|
2005-01-26 16:04:04 +08:00
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2001-08-08 02:16:01 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION text_soundex(text) RETURNS text
|
2002-10-19 02:41:22 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'soundex'
|
2005-01-26 16:04:04 +08:00
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
|
|
|
|
|
|
|
CREATE FUNCTION difference(text,text) RETURNS int
|
|
|
|
AS 'MODULE_PATHNAME', 'difference'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2004-07-01 11:25:48 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION dmetaphone (text) RETURNS text
|
2005-01-26 16:04:04 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'dmetaphone'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2004-07-01 11:25:48 +08:00
|
|
|
|
|
|
|
CREATE FUNCTION dmetaphone_alt (text) RETURNS text
|
2005-01-26 16:04:04 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'dmetaphone_alt'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|