Re: ERROR: failed to build any 4-way joins - Mailing list pgsql-bugs

From Tom Lane
Subject Re: ERROR: failed to build any 4-way joins
Date
Msg-id 25101.1165959447@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR: failed to build any 4-way joins  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ERROR: failed to build any 4-way joins
List pgsql-bugs
I wrote:
> I guess we need a hack
> to treat empty outer join conditions specially.

Actually, it can happen with non-empty join conditions too, if the join
condition doesn't mention the outer side; for instance, using your
example

explain SELECT * from fooview fv1
   LEFT OUTER JOIN fooview fv2 on fv2.a_for_max_b < 10;

So my original thoughts of a narrow special case for "OUTER JOIN ON TRUE"
went up in smoke, and I ended up just having have_relevant_joinclause()
troll for relevant outer joins all the time.  This probably isn't going
to cost enough planning time to matter, anyway.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: BUG #2816: Logfile difference in timestamp between
Next
From: Heikki Linnakangas
Date:
Subject: Re: postgresql installation on centOS not working