pgsql: Fix mishandling of whole-row Vars referencing a view or

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix mishandling of whole-row Vars referencing a view or
Date: 2010-06-21 00:14:48
Message-ID: 20100621001448.A90A67541D4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix mishandling of whole-row Vars referencing a view or sub-select.
If such a Var appeared within a nested sub-select, we failed to translate it
correctly during pullup of the view, because the recursive call to
replace_rte_variables_mutator was looking for the wrong sublevels_up value.
Bug was introduced during the addition of the PlaceHolderVar mechanism.
Per bug #5514 from Marcos Castedo.

Modified Files:
--------------
pgsql/src/backend/optimizer/prep:
prepjointree.c (r1.71 -> r1.72)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/prep/prepjointree.c?r1=1.71&r2=1.72)
pgsql/src/test/regress/expected:
subselect.out (r1.22 -> r1.23)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/subselect.out?r1=1.22&r2=1.23)
pgsql/src/test/regress/sql:
subselect.sql (r1.14 -> r1.15)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/subselect.sql?r1=1.14&r2=1.15)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-06-21 00:14:54 pgsql: Fix mishandling of whole-row Vars referencing a view or
Previous Message User C2main 2010-06-19 22:46:35 slony1-ctl - slony-ctl: Add gettext Add sanity checks