Re: /contrib/soundex doesn't work. Version 7.0.2

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: /contrib/soundex doesn't work. Version 7.0.2
Дата
Msg-id Pine.LNX.4.21.0009291641200.363-200000@peter
обсуждение исходный текст
Ответ на /contrib/soundex doesn't work. Version 7.0.2  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:

> The code in /contrib/soundex doesn't work. It does compile though. I
> create the function in the database, but it always returns nothing
> (blank)!

Hmm, while I can confirm that the soundex algorithm is implemented
incorrectly I never get blanks only.  Check that you have defined the
function like this:

    CREATE FUNCTION soundex(text) RETURNS text AS
      '/some/where/soundex.so', 'text_soundex' LANGUAGE 'C';

(ignore the stuff in soundex.sql, it's broken).

To get a correct implementation of soundex, apply the attached patch.
You need to restart the server to get it to load the new object file.

Also note that there is a disagreement among experts over one particular
part of the algorithm.  Check it out with your favourite search engine.


--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/

В списке pgsql-bugs по дате отправления:

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: /contrib/soundex doesn't work. Version 7.0.2
Следующее
От: Christof Petig
Дата:
Сообщение: Re: how to copy data from excel spreadsheet to postgresql database