mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-28 11:55:03 +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:
		| @@ -26,7 +26,7 @@ | ||||
|  * | ||||
|  * | ||||
|  * IDENTIFICATION | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.205 2003/03/27 16:51:27 momjian Exp $ | ||||
|  *	  $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.206 2003/05/05 17:57:47 tgl Exp $ | ||||
|  * | ||||
|  *------------------------------------------------------------------------- | ||||
|  */ | ||||
| @@ -634,7 +634,7 @@ InitPlan(QueryDesc *queryDesc) | ||||
| 	 * (this is especially important if we are creating a relation with | ||||
| 	 * "SELECT INTO") | ||||
| 	 */ | ||||
| 	tupType = ExecGetTupType(planstate); | ||||
| 	tupType = ExecGetResultType(planstate); | ||||
|  | ||||
| 	/* | ||||
| 	 * Initialize the junk filter if needed.  SELECT and INSERT queries need a | ||||
| @@ -713,7 +713,7 @@ InitPlan(QueryDesc *queryDesc) | ||||
| 					JunkFilter *j; | ||||
|  | ||||
| 					j = ExecInitJunkFilter(subplan->plan->targetlist, | ||||
| 										   ExecGetTupType(subplan), | ||||
| 										   ExecGetResultType(subplan), | ||||
| 							  ExecAllocTableSlot(estate->es_tupleTable)); | ||||
| 					resultRelInfo->ri_junkFilter = j; | ||||
| 					resultRelInfo++; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user