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
|
|
|
|
2002-10-19 02:41:22 +08:00
|
|
|
CREATE FUNCTION levenshtein (text,text)
|
|
|
|
RETURNS int
|
|
|
|
AS 'MODULE_PATHNAME','levenshtein'
|
|
|
|
LANGUAGE 'C' WITH (iscachable, isstrict);
|
|
|
|
|
|
|
|
CREATE FUNCTION metaphone (text,int)
|
|
|
|
RETURNS text
|
|
|
|
AS 'MODULE_PATHNAME','metaphone'
|
|
|
|
LANGUAGE 'C' WITH (iscachable, isstrict);
|
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'
|
|
|
|
LANGUAGE 'C' WITH (iscachable, isstrict);
|
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'
|
|
|
|
LANGUAGE 'C';
|