Re: Crash in 9.4 Beta when partially collapsing left outer joins
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Crash in 9.4 Beta when partially collapsing left outer joins |
| Дата | |
| Msg-id | 7732.1410269107@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Crash in 9.4 Beta when partially collapsing left outer joins (Michael Paquier <michael.paquier@gmail.com>) |
| Ответы |
Re: Crash in 9.4 Beta when partially collapsing left outer joins
|
| Список | pgsql-general |
Michael Paquier <michael.paquier@gmail.com> writes:
> The logic for nested OR is correct by reading it, hence why not simply
> removing the assertion failing? The attached patch 1 does so.
The reason for the assert is that there should never be an OR directly
underneath an OR in the planner after eval_const_expressions has flattened
such cases. Evidently commit f343a88 failed to preserve AND/OR flatness
in some cases :-(. That code should be taught to do so, rather than
lobotomizing this assertion. Lack of flatness causes optimization
inefficiencies, which is why we don't want to just allow it.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера