2010-09-21 04:08:53 +08:00
|
|
|
/* contrib/fuzzystrmatch/fuzzystrmatch.sql.in */
|
2007-11-13 12:24:29 +08:00
|
|
|
|
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
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE 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
|
|
|
|
2008-04-04 05:13:07 +08:00
|
|
|
CREATE OR REPLACE FUNCTION levenshtein (text,text,int,int,int) RETURNS int
|
|
|
|
AS 'MODULE_PATHNAME','levenshtein_with_costs'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE 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
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE 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
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE 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;
|
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION difference(text,text) RETURNS int
|
2005-01-26 16:04:04 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'difference'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|
2004-07-01 11:25:48 +08:00
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE 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
|
|
|
|
2007-11-11 11:25:35 +08:00
|
|
|
CREATE OR REPLACE FUNCTION dmetaphone_alt (text) RETURNS text
|
2005-01-26 16:04:04 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'dmetaphone_alt'
|
|
|
|
LANGUAGE C IMMUTABLE STRICT;
|