Get rid of ExecAssignResultTypeFromOuterPlan() and make all plan node types

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4dd2048a47712732b60f45fd49f4080bfeec95a0
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-11-23T20:27:58Z
Releases: 8.2.0
Get rid of ExecAssignResultTypeFromOuterPlan() and make all plan node types
generate their output tuple descriptors from their target lists (ie, using
ExecAssignResultTypeFromTL()).  We long ago fixed things so that all node
types have minimally valid tlists, so there's no longer any good reason to
have two different ways of doing it.  This change is needed to fix bug
reported by Hayden James: the fix of 2005-11-03 to emit the correct column
names after optimizing away a SubqueryScan node didn't work if the new
top-level plan node used ExecAssignResultTypeFromOuterPlan to generate its
tupdesc, since the next plan node down won't have the correct column labels.

Files