Re: text_pattern_ops index *not* used in field = value condition?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: text_pattern_ops index *not* used in field = value condition? |
| Дата | |
| Msg-id | 26023.1189868979@sss.pgh.pa.us обсуждение |
| Ответ на | text_pattern_ops index *not* used in field = value condition? (hubert depesz lubaczewski <depesz@depesz.com>) |
| Ответы |
Re: text_pattern_ops index *not* used in field = value condition?
|
| Список | pgsql-general |
hubert depesz lubaczewski <depesz@depesz.com> writes:
> index is created using text_pattern_ops so i will be able to use it in 'where word like '...%''
> but, it appears it is not usable with = operator:
= is not one of the members of the text_pattern_ops operator class.
regression=# select amopopr::regoperator from pg_amop where amopclaid in (select oid from pg_opclass where opcname =
'text_pattern_ops');
amopopr
-----------------
~<~(text,text)
~<=~(text,text)
~=~(text,text)
~>=~(text,text)
~>~(text,text)
~=~(text,text)
(6 rows)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера