| От | Tom Lane |
|---|---|
| Тема | Re: Assert failure of the cross-check for nullingrels |
| Дата | |
| Msg-id | 354925.1684524556@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Assert failure of the cross-check for nullingrels (Richard Guo <guofenglinux@gmail.com>) |
| Список | pgsql-hackers |
Richard Guo <guofenglinux@gmail.com> writes:
> I keep thinking about my proposal in v2 patch. It seems more natural to
> me to fix this issue, because an outer join's quals are always treated
> as a whole when we check if identity 3 applies in make_outerjoininfo, as
> well as when we adjust the outer join's quals for commutation in
> deconstruct_distribute_oj_quals.
No, I doubt that that patch works properly. If the join condition
contains independent quals on different relations, say
select ... from t1 left join t2 on (t1.a = 1 and t2.b = 2)
then it may be that those quals need to be pushed to different levels.
I don't believe that considering the union of the rels mentioned in
any qual is a reasonable thing to do here.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера