mirror of https://github.com/citusdata/citus.git
Remove MULTI_EXECUTOR_TASK_TRACKER
parent
836992562c
commit
ba94269f55
|
@ -48,7 +48,6 @@
|
|||
|
||||
/* functions for creating custom scan nodes */
|
||||
static Node * AdaptiveExecutorCreateScan(CustomScan *scan);
|
||||
static Node * TaskTrackerCreateScan(CustomScan *scan);
|
||||
static Node * CoordinatorInsertSelectCreateScan(CustomScan *scan);
|
||||
static Node * DelayedErrorCreateScan(CustomScan *scan);
|
||||
|
||||
|
@ -72,11 +71,6 @@ CustomScanMethods AdaptiveExecutorCustomScanMethods = {
|
|||
AdaptiveExecutorCreateScan
|
||||
};
|
||||
|
||||
CustomScanMethods TaskTrackerCustomScanMethods = {
|
||||
"Citus Task-Tracker",
|
||||
TaskTrackerCreateScan
|
||||
};
|
||||
|
||||
CustomScanMethods CoordinatorInsertSelectCustomScanMethods = {
|
||||
"Citus INSERT ... SELECT",
|
||||
CoordinatorInsertSelectCreateScan
|
||||
|
@ -149,7 +143,6 @@ void
|
|||
RegisterCitusCustomScanMethods(void)
|
||||
{
|
||||
RegisterCustomScanMethods(&AdaptiveExecutorCustomScanMethods);
|
||||
RegisterCustomScanMethods(&TaskTrackerCustomScanMethods);
|
||||
RegisterCustomScanMethods(&CoordinatorInsertSelectCustomScanMethods);
|
||||
RegisterCustomScanMethods(&DelayedErrorCustomScanMethods);
|
||||
}
|
||||
|
@ -573,25 +566,6 @@ AdaptiveExecutorCreateScan(CustomScan *scan)
|
|||
return (Node *) scanState;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* TaskTrackerCreateScan creates the scan state for task-tracker executor queries.
|
||||
*/
|
||||
static Node *
|
||||
TaskTrackerCreateScan(CustomScan *scan)
|
||||
{
|
||||
CitusScanState *scanState = palloc0(sizeof(CitusScanState));
|
||||
|
||||
scanState->executorType = MULTI_EXECUTOR_TASK_TRACKER;
|
||||
scanState->customScanState.ss.ps.type = T_CustomScanState;
|
||||
scanState->distributedPlan = GetDistributedPlan(scan);
|
||||
|
||||
scanState->customScanState.methods = &TaskTrackerCustomExecMethods;
|
||||
|
||||
return (Node *) scanState;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* CoordinatorInsertSelectCrateScan creates the scan state for executing
|
||||
* INSERT..SELECT into a distributed table via the coordinator.
|
||||
|
|
|
@ -94,11 +94,6 @@ CitusExecutorName(MultiExecutorType executorType)
|
|||
return "adaptive";
|
||||
}
|
||||
|
||||
case MULTI_EXECUTOR_TASK_TRACKER:
|
||||
{
|
||||
return "task-tracker";
|
||||
}
|
||||
|
||||
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
||||
{
|
||||
return "insert-select";
|
||||
|
|
|
@ -1298,12 +1298,6 @@ FinalizePlan(PlannedStmt *localPlan, DistributedPlan *distributedPlan)
|
|||
break;
|
||||
}
|
||||
|
||||
case MULTI_EXECUTOR_TASK_TRACKER:
|
||||
{
|
||||
customScan->methods = &TaskTrackerCustomScanMethods;
|
||||
break;
|
||||
}
|
||||
|
||||
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
||||
{
|
||||
customScan->methods = &CoordinatorInsertSelectCustomScanMethods;
|
||||
|
|
|
@ -916,15 +916,6 @@ ShouldRecursivelyPlanSubquery(Query *subquery, RecursivePlanningContext *context
|
|||
*/
|
||||
return false;
|
||||
}
|
||||
else if (TaskExecutorType == MULTI_EXECUTOR_TASK_TRACKER &&
|
||||
SingleRelationRepartitionSubquery(subquery))
|
||||
{
|
||||
/*
|
||||
* Citus can plan this and execute via repartitioning. Thus,
|
||||
* no need to recursively plan.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ typedef struct CitusScanState
|
|||
|
||||
/* custom scan methods for all executors */
|
||||
extern CustomScanMethods AdaptiveExecutorCustomScanMethods;
|
||||
extern CustomScanMethods TaskTrackerCustomScanMethods;
|
||||
extern CustomScanMethods CoordinatorInsertSelectCustomScanMethods;
|
||||
extern CustomScanMethods DelayedErrorCustomScanMethods;
|
||||
|
||||
|
|
|
@ -87,8 +87,7 @@ typedef enum
|
|||
{
|
||||
MULTI_EXECUTOR_INVALID_FIRST = 0,
|
||||
MULTI_EXECUTOR_ADAPTIVE = 1,
|
||||
MULTI_EXECUTOR_TASK_TRACKER = 2,
|
||||
MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT = 3
|
||||
MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT = 2
|
||||
} MultiExecutorType;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue