]> granicus.if.org Git - postgresql/commit
Repair problem noted by Elphick: make_rels_by_joins failed to handle
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2000 18:35:04 +0000 (18:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Apr 2000 18:35:04 +0000 (18:35 +0000)
commitd6eac08f110f7e611b84d4f92ce68f3385ae5f55
tree5696ab4bfab1e255e8bb713824aef5cd3547b587
parent85a53038778e8d0d7b8230aae72768b055f83037
Repair problem noted by Elphick: make_rels_by_joins failed to handle
cases where joinclauses were present but some joins have to be made
by cartesian-product join anyway.  An example is
SELECT * FROM a,b,c WHERE (a.f1 + b.f2 + c.f3) = 0;
Even though all the rels have joinclauses, we must join two of them
in cartesian style before we can use the join clause...
src/backend/optimizer/path/joinrels.c