Re: stable vs. immutable unaccent function

Поиск
Список
Период
Сортировка
От Thangalin
Тема Re: stable vs. immutable unaccent function
Дата
Msg-id CAANrE7psMMMW8mDqjx-4=xh+MTWov3cekyp8Q4Fkgwu5=-S6gw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: stable vs. immutable unaccent function  (Marti Raudsepp <marti@juffo.org>)
Список pgsql-bugs
Hi,

I wrote the unaccent_text wrapper function to achieve the following:

CREATE INDEX table_name_label_unaccent_idx
  ON table_name
  USING gin
  (unaccent_text(label::text) COLLATE pg_catalog."default" gin_trgm_ops);

I would have liked to use unaccent directly.

The fact that someone wrote such a comment should be a clue that it's a
> hack. :)
>

My comment. I acknowledge it was a hack. Couldn't see how to add the
unaccented index (without adding an extra column, which is just another
hack). ;-)

A proper solution, Marti, I thank you for: using the STABLE unaccent
function from MusicBrainz. I'll take a look -- hopefully it works with 9.1.

T

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: stable vs. immutable unaccent function
Следующее
От: frank@heuveltop.nl
Дата:
Сообщение: BUG #8135: current_setting('DateStyle'); does not reflect User setting