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:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user