Thread: pgsql: Fix LATERAL references to join alias variables.

pgsql: Fix LATERAL references to join alias variables.

From
Tom Lane
Date:
Fix LATERAL references to join alias variables.

I had thought this case worked already, but perhaps I didn't re-test it
after adding extract_lateral_references() ...

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/da3df998702061b4b63d83d5354b148e812f21f8

Modified Files
--------------
src/backend/optimizer/plan/planner.c |   59 +++++++++++++++++++++++----------
src/backend/optimizer/util/var.c     |    4 ++-
src/test/regress/expected/join.out   |   26 +++++++++++++++
src/test/regress/sql/join.sql        |    8 ++++
4 files changed, 78 insertions(+), 19 deletions(-)