Re: Can LIKE under utf8 use INDEXes?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Can LIKE under utf8 use INDEXes?
Дата
Msg-id 2611.1248294675@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Can LIKE under utf8 use INDEXes?  (Robert James <srobertjames@gmail.com>)
Ответы Re: Can LIKE under utf8 use INDEXes?
Список pgsql-general
Robert James <srobertjames@gmail.com> writes:
> Hi.  I'm confused about the behavior of LIKE under utf8 locale.

UTF8 is not a locale, it's an encoding.  If you're using C locale then
LIKE can use indexes, regardless of the encoding.  If you're using
some other locale then you need a pattern_ops index.

            regards, tom lane

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

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: Best way to import data in postgresl (not "COPY")
Следующее
От: Andreas Wenk
Дата:
Сообщение: Re: psql \du [PATCH] extended \du with [+] - was missing