OSDN Git Service

Fix create_unique_plan() so it doesn't generate useless entries in the
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 22:02:51 +0000 (22:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 22:02:51 +0000 (22:02 +0000)
commit59857b46a8e3daf0f7c0794a853b8601ea3f2535
tree01aa7da0feef61693e360678d78e5edf7cc1d5fd
parent5e544e4eb74e9e1b3197bd72855908d5d9e7b7f9
Fix create_unique_plan() so it doesn't generate useless entries in the
output targetlist of the Unique or HashAgg plan.  This code was OK when
written, but subsequent changes to use "physical tlists" where possible
had broken it: given an input subplan that has extra variables added to
avoid a projection step, it would copy those extra variables into the
upper tlist, which is pointless since a projection has to happen anyway.
src/backend/optimizer/plan/createplan.c