Re: levenshtein_less_equal does not work - Mailing list pgsql-general

From Adrian Klaver
Subject Re: levenshtein_less_equal does not work
Date
Msg-id 52E2D8CA.4000601@gmail.com
Whole thread Raw
In response to Re: levenshtein_less_equal does not work  (alexandros_e <alexandros.ef@gmail.com>)
List pgsql-general
On 01/24/2014 01:07 PM, alexandros_e wrote:
> Query:
>
> SELECT levenshtein_less_equal('extensive', 'exhaustive',2);
>
> ERROR:  function levenshtein_less_equal(unknown, unknown, integer) does not
> exist
> LINE 1: SELECT levenshtein_less_equal('extensive', 'exhaustive',2);
>                 ^
> HINT:  No function matches the given name and argument types. You might need
> to add explicit type casts.
>
> Even this:
>
> SELECT levenshtein_less_equal('extensive'::TEXT,
> 'exhaustive'::TEXT,2::INTEGER);
> function levenshtein_less_equal(text, text, integer) does not exist
>
> But this works perfectly:
> SELECT levenshtein('extensive', 'exhaustive');
> 4

Are you sure you are connecting to a 9.1 server? levenshtein_less_equal
does not exist in 9.0- which would result in that error.

When you are in psql what does:

SELECT version();

and

\df  levenshtein_less_equal

show?

>
>
>
>
>
> --
> View this message in context:
http://postgresql.1045698.n5.nabble.com/levenshtein-less-equal-does-not-work-tp5788710p5788713.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>


--
Adrian Klaver
adrian.klaver@gmail.com


pgsql-general by date:

Previous
From: Joe Conway
Date:
Subject: Re: levenshtein_less_equal does not work
Next
From: alexandros_e
Date:
Subject: Re: levenshtein_less_equal does not work