Re: ERROR: failed to build any 4-way joins
| От | Tom Lane |
|---|---|
| Тема | Re: ERROR: failed to build any 4-way joins |
| Дата | |
| Msg-id | 7310.1165952331@sss.pgh.pa.us обсуждение |
| Ответ на | ERROR: failed to build any 4-way joins (Teodor Sigaev <teodor@sigaev.ru>) |
| Ответы |
Re: ERROR: failed to build any 4-way joins
|
| Список | pgsql-bugs |
Teodor Sigaev <teodor@sigaev.ru> writes:
> Test suite (as simple as I can produce):
Mmm, sweet :-(. There is only one legal way to form the outer join, but
make_rels_by_joins() doesn't try it because have_relevant_joinclause()
says there is no relevant joinclause ... as indeed there is not, the
"true = true" thing having been optimized away. I guess we need a hack
to treat empty outer join conditions specially.
> Sorry, versions are 8.2 & 8.3. 8.1 works well
Right, not a problem before 8.2 because outer join order was driven by
the syntax instead of by searching for a good join order. Also, you
need at least two base relations on each side of the outer join, else
the "last ditch" case in make_rels_by_joins() finds the join.
regards, tom lane
В списке pgsql-bugs по дате отправления: