Re: Filtering dictionaries support and unaccent dictionary

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Filtering dictionaries support and unaccent dictionary
Дата
Msg-id 20090801043507.GG11098@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Filtering dictionaries support and unaccent dictionary  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Filtering dictionaries support and unaccent dictionary  (Robert Haas <robertmhaas@gmail.com>)
Re: Filtering dictionaries support and unaccent dictionary  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
Teodor Sigaev wrote:

> >As for the contrib module, I think it could use a lot more function
> >header comments!  Also, it would be great if it could be used separately
> >from tsearch, i.e. that it provided a function unaccent(text) returns
> >text that unaccented arbitrary strings (I guess it would use the default
> >tsconfig).
> Umm? Module provides unaccent(text) and unaccent(regdictionary, text) functions.

Sorry, I failed to notice.  Looks good.

Isn't that function leaking "res" pointer?  Also, I'm curious why you're
allocating 2*sizeof(TSLexeme) in unaccent_lexize ...

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: machine-readable explain output v2
Следующее
От: PFC
Дата:
Сообщение: Re: More thoughts on sorting