Fix create_lateral_join_info to handle dead relations properly.
Commit 0a480502b092195a9b25a2f0f199a21d592a9c57 broke it.
Report by Andreas Seltenreich. Fix by Ashutosh Bapat.
Discussion: http://postgr.es/m/874ls2vrnx.fsf@ansel.ydns.eu
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/57eebca03a9eb61eb18f8ea9db94775653f797d1
Modified Files
--------------
src/backend/optimizer/plan/initsplan.c | 7 +++++--
src/test/regress/expected/join.out | 12 ++++++++++++
src/test/regress/sql/join.sql | 5 +++++
3 files changed, 22 insertions(+), 2 deletions(-)