1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Ditch ExecGetTupType() in favor of the much simpler ExecGetResultType(),

which does the same thing.  Perhaps at one time there was a reason to
allow plan nodes to store their result types in different places, but
AFAICT that's been unnecessary for a good while.
This commit is contained in:
Tom Lane
2003-05-05 17:57:47 +00:00
parent 20aea2ec7b
commit 94a3c60324
8 changed files with 21 additions and 206 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.42 2002/12/15 16:17:46 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.43 2003/05/05 17:57:47 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -137,7 +137,7 @@ ExecSort(SortState *node)
"calling tuplesort_begin");
outerNode = outerPlanState(node);
tupDesc = ExecGetTupType(outerNode);
tupDesc = ExecGetResultType(outerNode);
ExtractSortKeys(plannode, &sortOperators, &attNums);
@ -173,11 +173,6 @@ ExecSort(SortState *node)
*/
estate->es_direction = dir;
/*
* make sure the tuple descriptor is up to date (is this needed?)
*/
ExecAssignResultType(&node->ss.ps, tupDesc, false);
/*
* finally set the sorted flag to true
*/