| От | Tom Lane |
|---|---|
| Тема | Re: Docs off on ILIKE indexing? |
| Дата | |
| Msg-id | 9942.1137434600@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Docs off on ILIKE indexing? ("Magnus Hagander" <mha@sollentuna.net>) |
| Список | pgsql-hackers |
"Magnus Hagander" <mha@sollentuna.net> writes: > http://www.postgresql.org/docs/8.1/static/indexes-types.html > says: > The optimizer can also use a B-tree index for queries involving the > pattern matching operators LIKE, ILIKE, ~, and ~*, if the pattern is a > constant and is anchored to the beginning of the string - for example, > col LIKE 'foo%' or col ~ '^foo', but not col LIKE '%bar'. > But really, does it use indexes for ILIKE? That's pretty poorly phrased. For ILIKE it'll only work if there's a prefix of the pattern that's not letters (and hence is unaffected by the case-folding issue). regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера