Skip site navigation (1) Skip section navigation (2)

pgsql: Partially restore qual scope checks indistribute_qual_to_rels()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Partially restore qual scope checks indistribute_qual_to_rels()
Date: 2012-08-31 22:57:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-committers
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.



Modified Files
src/backend/optimizer/plan/initsplan.c |   28 +++++++++++++---------------
1 files changed, 13 insertions(+), 15 deletions(-)

pgsql-committers by date

Next:From: Andrew DunstanDate: 2012-09-01 00:51:09
Subject: pgsql: Restore setting of _USE_32BIT_TIME_T to 32 bit MSVC builds.
Previous:From: Tom LaneDate: 2012-08-31 21:44:48
Subject: pgsql: Fix LATERAL references to join alias variables.

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group