Re: Index on VARCHAR with text_pattern_ops inside PL/PGSQL procedure.

Поиск
Список
Период
Сортировка
От Piotr Gasidło
Тема Re: Index on VARCHAR with text_pattern_ops inside PL/PGSQL procedure.
Дата
Msg-id a9eb4e580712130341y58f6c7c0j53166c0c788c32f4@mail.gmail.com
обсуждение исходный текст
Ответ на Index on VARCHAR with text_pattern_ops inside PL/PGSQL procedure.  (Piotr Gasidło <quaker@barbara.eu.org>)
Список pgsql-performance
2007/12/10, Piotr Gasidło <quaker@barbara.eu.org>:
> Why PL/PGSQL is unable to proper utilize
> users_user_name_unique_text_pattern_ops?

I found solution, that satisfies me (EXECUTE is a bit ugly for me).

I've replaced LIKE operator with ~=~ operator. Now PL/PGSQL function
properly uses index on SELECT.

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Limited performance on multi core server
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Heavy write activity on first vacuum of fresh TOAST data