Re: Errors "failed to construct the join relation" and "failed to build any 2-way joins"

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Will Leinweber <will(at)bitfission(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Errors "failed to construct the join relation" and "failed to build any 2-way joins"
Date: 2019-12-13 06:26:11
Message-ID: 726.1576218371@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Will Leinweber <will(at)bitfission(dot)com> writes:
> On 12.1, fresh initdb the following query gives me the error
> "ERROR: failed to construct the join relation"

I'm getting an assertion failure in an assert-enabled build, here:

(gdb) f 3
#3 0x00000000006f382a in create_lateral_join_info (root=0x2d380c8)
at initsplan.c:637
637 Assert(!bms_is_member(rti, lateral_relids));

Eyeing the plan produced by v11, I'm suspecting some oversight in
the RTE_RESULT changes (4be058fe9); but I haven't actually bisected.
Too tired to look closer right now.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message vignesh C 2019-12-13 06:40:07 Re: segmentation fault when cassert enabled
Previous Message Kyotaro Horiguchi 2019-12-13 06:01:24 Re: xact_start for walsender & logical decoding not updated