Re: BUG #17700: An assert failed in prepjointree.c - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17700: An assert failed in prepjointree.c
Date
Msg-id 556194.1669649617@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #17700: An assert failed in prepjointree.c  (Richard Guo <guofenglinux@gmail.com>)
Responses Re: BUG #17700: An assert failed in prepjointree.c
List pgsql-bugs
Richard Guo <guofenglinux@gmail.com> writes:
> I haven't got too much time looking into it.  But the comment near the
> assertion failure that says

>  * Unlike the LEFT/RIGHT cases, we just Assert that there are
>  * no PHVs that need to be evaluated at the semijoin's RHS,
>  * since the rest of the query couldn't reference any outputs
>  * of the semijoin's RHS.

> I doubt this is true as a semijoin's qual can actually reference its
> RHS.  In this case the assertion failure happens because there is PHV in
> the join's qual.

Yeah, the possibility of a PHV in the qual refutes that argument.
So we need to make the test honestly, as in the other arms of that
switch.  Will fix.

            regards, tom lane



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #17701: Certificate verification problem when using proxies to access the server
Next
From: Tom Lane
Date:
Subject: Re: BUG #17700: An assert failed in prepjointree.c