]> granicus.if.org Git - postgresql/commit
Partially restore qual scope checks in distribute_qual_to_rels().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Aug 2012 22:57:12 +0000 (18:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 31 Aug 2012 22:57:12 +0000 (18:57 -0400)
commitc97a547a4a0913e37e5dd1f026ac3c281326b215
tree0bb672e912204f2766cfdcbed1779c63986c1df9
parentda3df998702061b4b63d83d5354b148e812f21f8
Partially restore qual scope checks in distribute_qual_to_rels().

The LATERAL implementation is now basically complete, and I still don't
see a cost-effective way to make an exact qual scope cross-check in the
presence of LATERAL.  However, I did add a PlannerInfo.hasLateralRTEs flag
along the way, so it's easy to make the check only when not hasLateralRTEs.
That seems to still be useful, and it beats having no check at all.
src/backend/optimizer/plan/initsplan.c