| От | Jules Bean |
|---|---|
| Тема | Re: Yet another LIKE-indexing scheme |
| Дата | |
| Msg-id | 20000906094914.B31824@grommit.office.vi.net обсуждение исходный текст |
| Ответ на | Yet another LIKE-indexing scheme (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
On Sat, Sep 02, 2000 at 01:39:47PM -0400, Tom Lane wrote: > > So what happens with "WHERE name like 'Czec%`" ? > > Our existing code fails because it generates WHERE name >= 'Czec' AND > name < 'Czed'; it will therefore not find names beginning 'Czech' > because those are in another part of the index, between 'Czeh' and > 'Czei'. But WHERE name >= 'Cze' AND name < 'Czf' would work. (OK, I haven't read the previous discussion. Guilty, m'lud) Why should it? If 'ch' is one letter, then surely 'czech' isn't LIKE 'czec%'. Because 'czec%' has a second c, wheres, 'czech' only has one 'c' and one 'ch'? Jules
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера