提交 a653bd6a 编写于 作者: H Heikki Linnakangas

Remove unused field.

上级 7d9ca5db
......@@ -2002,7 +2002,6 @@ explain_outNode(StringInfo str,
for (i = 0; i < indent; i++)
appendStringInfo(str, " ");
appendStringInfo(str, " %s\n", sp->plan_name);
Assert(!sps->cdbextratextbuf);
for (i = 0; i < indent; i++)
appendStringInfo(str, " ");
......
......@@ -665,7 +665,6 @@ ExecInitSubPlan(SubPlanState *node, EState *estate, int eflags)
node->keyColIdx = NULL;
node->eqfunctions = NULL;
node->hashfunctions = NULL;
node->cdbextratextbuf = NULL;
/*
* create an EState for the subplan
......@@ -1049,8 +1048,6 @@ ExecSetParamPlan(SubPlanState *node, ExprContext *econtext,
planstate->plan->dispatch == DISPATCH_PARALLEL)
shouldDispatch = true;
node->cdbextratextbuf = NULL;
/*
* Reset memory high-water mark so EXPLAIN ANALYZE can report each
* root slice's usage separately.
......@@ -1283,17 +1280,10 @@ ExecSetParamPlan(SubPlanState *node, ExprContext *econtext,
/* If EXPLAIN ANALYZE, collect execution stats from qExecs. */
if (planstate->instrument)
{
MemoryContext savecxt;
/* Wait for all gangs to finish. */
CdbCheckDispatchResult(queryDesc->estate->dispatcherState,
DISPATCH_WAIT_NONE);
/* Allocate buffer to pass extra message text to cdbexplain. */
savecxt = MemoryContextSwitchTo(gbl_queryDesc->estate->es_query_cxt);
node->cdbextratextbuf = makeStringInfo();
MemoryContextSwitchTo(savecxt);
/* Jam stats into subplan's Instrumentation nodes. */
explainRecvStats = true;
cdbexplain_recvExecStats(planstate,
......
......@@ -1056,7 +1056,6 @@ typedef struct SubPlanState
AttrNumber *keyColIdx; /* control data for hash tables */
FmgrInfo *eqfunctions; /* comparison functions for hash tables */
FmgrInfo *hashfunctions; /* lookup data for hash functions */
struct StringInfoData *cdbextratextbuf; /* to pass text to cdbexplain */
} SubPlanState;
/* ----------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册