For non-projecting plan node types such as Limit, set_plan_references
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Sep 2005 17:25:01 +0000 (17:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Sep 2005 17:25:01 +0000 (17:25 +0000)
commit03728942c294b904399c58fc6f0a228067e2a295
tree9f7de4c9dc1da0b060107cee06895bdf9e4c84e7
parent2739e1d1c268635f3cbc7554736d0719993a6f46
For non-projecting plan node types such as Limit, set_plan_references
has to recopy the input plan node's targetlist if it removes a
SubqueryScan node just below the non-projecting node.  For simplicity
I made it recopy always.  Per bug report from Allan Wang and Michael Fuhr.
src/backend/optimizer/plan/setrefs.c