WRITE_ENUM_FIELD(commandType, CmdType);
WRITE_BOOL_FIELD(hasReturning);
+ WRITE_BOOL_FIELD(parallelModeNeeded);
WRITE_NODE_FIELD(planTree);
WRITE_NODE_FIELD(rtable);
WRITE_NODE_FIELD(resultRelations);
READ_ENUM_FIELD(commandType, CmdType);
READ_BOOL_FIELD(hasReturning);
+ READ_BOOL_FIELD(parallelModeNeeded);
READ_NODE_FIELD(planTree);
READ_NODE_FIELD(rtable);
READ_NODE_FIELD(resultRelations);
*/
RemoteSubplanMakeUnique((Node *) outerPlan(node), PGXCNodeId);
}
+ rstmt.parallelModeNeeded = estate->es_plannedstmt->parallelModeNeeded;
rstmt.planTree = outerPlan(node);
/*
* If datanode launch further execution of a command it should tell
stmt->distributionKey = rstmt->distributionKey;
stmt->distributionNodes = rstmt->distributionNodes;
stmt->distributionRestrict = rstmt->distributionRestrict;
+ stmt->parallelModeNeeded = rstmt->parallelModeNeeded;
/*
* Set up SharedQueue if intermediate results need to be distributed
bool hasReturning; /* is it insert|update|delete RETURNING? */
+ bool parallelModeNeeded;
+
struct Plan *planTree; /* tree of Plan nodes */
List *rtable; /* list of RangeTblEntry nodes */