]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Get rid of ExecAssignResultTypeFromOuterPlan() and make all plan node types
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Nov 2005 20:27:58 +0000 (20:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Nov 2005 20:27:58 +0000 (20:27 +0000)
commit4dd2048a47712732b60f45fd49f4080bfeec95a0
tree831248d517aed80c52fa6f7b0bd45b72c2009f68
parent19ff959bff054574be094e9633b69fc65c6c6a3c
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.
src/backend/executor/execUtils.c
src/backend/executor/nodeHash.c
src/backend/executor/nodeLimit.c
src/backend/executor/nodeMaterial.c
src/backend/executor/nodeSetOp.c
src/backend/executor/nodeSort.c
src/backend/executor/nodeUnique.c
src/include/executor/executor.h