Re: BUG #17700: An assert failed in prepjointree.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17700: An assert failed in prepjointree.c
Дата
Msg-id 793071.1669688653@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #17700: An assert failed in prepjointree.c  (Richard Guo <guofenglinux@gmail.com>)
Ответы Re: BUG #17700: An assert failed in prepjointree.c  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> BTW, for the test case

> +explain (verbose, costs off)
> +with ctetable as not materialized ( select 1 as f1 )
> +select * from ctetable c1
> +where f1 in ( select c3.f1 from ctetable c2 full join ctetable c3 on true
> );

> Actually we just need to keep 'c3' in a join's nullable side to have the
> PHV created.  So we don't have to use full join in the subquery.  A left
> join would do.

Actually, the planner reduces the full join to left join anyway;
if it did not, it wouldn't be able to reach the code in question.
I think this formulation is fine because it tests that step along
with the bug proper.

            regards, tom lane



В списке pgsql-bugs по дате отправления:

Предыдущее
От: Richard Guo
Дата:
Сообщение: Re: BUG #17700: An assert failed in prepjointree.c
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17702: An assert failed in parse_utilcmd.c