diff options
| author | Tom Lane | 2011-02-14 03:53:00 +0000 |
|---|---|---|
| committer | Tom Lane | 2011-02-14 03:54:53 +0000 |
| commit | 3b61e57f3c352ab97c6514898d46480b5725ebb9 (patch) | |
| tree | 50ec6909de2ef6193eb09557031758e2a387bad3 /contrib/fuzzystrmatch | |
| parent | 029fac2264101919b65fb6319bb994f941969471 (diff) | |
Assorted fixups for "unpackaged" conversion scripts.
From first pass of testing. Notably, there seems to be no need for
adminpack--unpackaged--1.0.sql because none of the objects that the
old module creates would ever be dumped by pg_dump anyway (they are
all in pg_catalog).
Diffstat (limited to 'contrib/fuzzystrmatch')
| -rw-r--r-- | contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql b/contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql index 12077a84ae0..b99510bcddc 100644 --- a/contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql +++ b/contrib/fuzzystrmatch/fuzzystrmatch--unpackaged--1.0.sql @@ -2,11 +2,19 @@ ALTER EXTENSION fuzzystrmatch ADD function levenshtein(text,text); ALTER EXTENSION fuzzystrmatch ADD function levenshtein(text,text,integer,integer,integer); -ALTER EXTENSION fuzzystrmatch ADD function levenshtein_less_equal(text,text,integer); -ALTER EXTENSION fuzzystrmatch ADD function levenshtein_less_equal(text,text,integer,integer,integer,integer); ALTER EXTENSION fuzzystrmatch ADD function metaphone(text,integer); ALTER EXTENSION fuzzystrmatch ADD function soundex(text); ALTER EXTENSION fuzzystrmatch ADD function text_soundex(text); ALTER EXTENSION fuzzystrmatch ADD function difference(text,text); ALTER EXTENSION fuzzystrmatch ADD function dmetaphone(text); ALTER EXTENSION fuzzystrmatch ADD function dmetaphone_alt(text); + +-- these functions were not in 9.0 + +CREATE FUNCTION levenshtein_less_equal (text,text,int) RETURNS int +AS 'MODULE_PATHNAME','levenshtein_less_equal' +LANGUAGE C IMMUTABLE STRICT; + +CREATE FUNCTION levenshtein_less_equal (text,text,int,int,int,int) RETURNS int +AS 'MODULE_PATHNAME','levenshtein_less_equal_with_costs' +LANGUAGE C IMMUTABLE STRICT; |
