parallel hash: inner parallel
This commit is contained in:
@ -1360,20 +1360,27 @@ void ExecEndNode(PlanState* node)
|
||||
* no more rows will be needed (e.g. when a Limit is filled) rather than only
|
||||
* at the end of ExecutorRun.
|
||||
*/
|
||||
bool ExecShutdownNode(PlanState *node)
|
||||
bool ExecShutdownNode(PlanState* node)
|
||||
{
|
||||
if (node == NULL)
|
||||
if (node == NULL) {
|
||||
return false;
|
||||
|
||||
}
|
||||
(void)planstate_tree_walker(node, (bool (*)())ExecShutdownNode, NULL);
|
||||
switch (nodeTag(node)) {
|
||||
case T_GatherState:
|
||||
ExecShutdownGather((GatherState *)node);
|
||||
ExecShutdownGather((GatherState*)node);
|
||||
break;
|
||||
case T_HashState:
|
||||
ExecShutdownHash((HashState*)node);
|
||||
break;
|
||||
case T_HashJoinState:
|
||||
ExecShutdownHashJoin((HashJoinState*)node);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return planstate_tree_walker(node, (bool (*)())ExecShutdownNode, NULL);
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user