Re: text column indexing in UTF-8 database

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: text column indexing in UTF-8 database
Дата
Msg-id 17820.1236967681@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: text column indexing in UTF-8 database  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-general
Jeff Davis <pgsql@j-davis.com> writes:
> One thing that still doesn't make sense to me is that texteq() is
> bitwise-equality even in 8.3.

Historical artifact ... we made the semantics change some time ago, but
the ensuing change to remove ~=~ didn't happen until 8.4.

> It sounds like Reece Hart can avoid the extra index by making a new
> opclass that's like text_pattern_ops except "~=~" should be named "=".

Unfortunately not, because the LIKE index optimizations are keyed off
the built-in opclasses.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Maximum transaction rate
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Maximum transaction rate