| От | Tom Lane |
|---|---|
| Тема | Re: Planner not using UNIQUEness of index properly |
| Дата | |
| Msg-id | 14571.1197303097@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Planner not using UNIQUEness of index properly (John Burger <john@mitre.org>) |
| Ответы |
Re: Planner not using UNIQUEness of index properly
|
| Список | pgsql-general |
John Burger <john@mitre.org> writes:
> create unique index ix_allWords_lower on allWords (lower(word));
> To my surprise, the planner does not seem to realize that only one
> row can result from using this index:
> I would think UNIQUE => one row is pretty obvious - what am I
> missing? (Unless it's that I'm still stuck in 7.4.)
That would be the problem :-( ... a look at the code suggests that the
ability to do anything intelligent with expression indexes was added
in 8.0.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера