| От | Richard Poole |
|---|---|
| Тема | Re: Query plan w/ like clause question |
| Дата | |
| Msg-id | 20020529235813.GA31037@guests.deus.net обсуждение исходный текст |
| Ответ на | Query plan w/ like clause question (Steve Wranovsky <stevew@merge.com>) |
| Список | pgsql-general |
On Wed, May 29, 2002 at 03:58:53PM -0500, Steve Wranovsky wrote: > > I am having some strange results using a "like" clause under 7.2.1 w/ Linux. ... > When I try to a like clause with a '%' wildcard that will return the > same results as the exact match, the query does a sequential scan > instead of using the index, and takes a significant amount of time > to execute. An index scan can't be used for a LIKE unless you're running in the C locale, because other locales may have sorting rules which would give incorrect results. Probably you're using en_US? Unfortunately you need to re-run "initdb" to change this, which means dumping and restoring your databases. See section 3.2 of the Administrator's Guide. Richard
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера