| От | Tom Lane |
|---|---|
| Тема | Re: Strange postgres planner behaviour |
| Дата | |
| Msg-id | 14092.1110689920@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Strange postgres planner behaviour ("Sergey E. Koposov" <math@sai.msu.ru>) |
| Ответы |
Re: Strange postgres planner behaviour
|
| Список | pgsql-hackers |
"Sergey E. Koposov" <math@sai.msu.ru> writes:
> I want to descibe some strange behaviour of the postgres planner.
It's not strange exactly: the mechanism for OR indexscan and the
mechanism for nestloop join indexscan are separate and don't talk
to each other. So you don't get to have a join inner indexscan that
involves an OR condition.
I have some vague ideas about replacing orindxpath.c entirely, once
we have some infrastructure for doing OR indexscans via bitmap union.
But it's not just around the corner.
In the meantime you might try expressing your query as a UNION.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера