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 */
|
/* functions for creating custom scan nodes */
|
||||||
static Node * AdaptiveExecutorCreateScan(CustomScan *scan);
|
static Node * AdaptiveExecutorCreateScan(CustomScan *scan);
|
||||||
static Node * TaskTrackerCreateScan(CustomScan *scan);
|
|
||||||
static Node * CoordinatorInsertSelectCreateScan(CustomScan *scan);
|
static Node * CoordinatorInsertSelectCreateScan(CustomScan *scan);
|
||||||
static Node * DelayedErrorCreateScan(CustomScan *scan);
|
static Node * DelayedErrorCreateScan(CustomScan *scan);
|
||||||
|
|
||||||
|
@ -72,11 +71,6 @@ CustomScanMethods AdaptiveExecutorCustomScanMethods = {
|
||||||
AdaptiveExecutorCreateScan
|
AdaptiveExecutorCreateScan
|
||||||
};
|
};
|
||||||
|
|
||||||
CustomScanMethods TaskTrackerCustomScanMethods = {
|
|
||||||
"Citus Task-Tracker",
|
|
||||||
TaskTrackerCreateScan
|
|
||||||
};
|
|
||||||
|
|
||||||
CustomScanMethods CoordinatorInsertSelectCustomScanMethods = {
|
CustomScanMethods CoordinatorInsertSelectCustomScanMethods = {
|
||||||
"Citus INSERT ... SELECT",
|
"Citus INSERT ... SELECT",
|
||||||
CoordinatorInsertSelectCreateScan
|
CoordinatorInsertSelectCreateScan
|
||||||
|
@ -149,7 +143,6 @@ void
|
||||||
RegisterCitusCustomScanMethods(void)
|
RegisterCitusCustomScanMethods(void)
|
||||||
{
|
{
|
||||||
RegisterCustomScanMethods(&AdaptiveExecutorCustomScanMethods);
|
RegisterCustomScanMethods(&AdaptiveExecutorCustomScanMethods);
|
||||||
RegisterCustomScanMethods(&TaskTrackerCustomScanMethods);
|
|
||||||
RegisterCustomScanMethods(&CoordinatorInsertSelectCustomScanMethods);
|
RegisterCustomScanMethods(&CoordinatorInsertSelectCustomScanMethods);
|
||||||
RegisterCustomScanMethods(&DelayedErrorCustomScanMethods);
|
RegisterCustomScanMethods(&DelayedErrorCustomScanMethods);
|
||||||
}
|
}
|
||||||
|
@ -573,25 +566,6 @@ AdaptiveExecutorCreateScan(CustomScan *scan)
|
||||||
return (Node *) scanState;
|
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
|
* CoordinatorInsertSelectCrateScan creates the scan state for executing
|
||||||
* INSERT..SELECT into a distributed table via the coordinator.
|
* INSERT..SELECT into a distributed table via the coordinator.
|
||||||
|
|
|
@ -94,11 +94,6 @@ CitusExecutorName(MultiExecutorType executorType)
|
||||||
return "adaptive";
|
return "adaptive";
|
||||||
}
|
}
|
||||||
|
|
||||||
case MULTI_EXECUTOR_TASK_TRACKER:
|
|
||||||
{
|
|
||||||
return "task-tracker";
|
|
||||||
}
|
|
||||||
|
|
||||||
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
||||||
{
|
{
|
||||||
return "insert-select";
|
return "insert-select";
|
||||||
|
|
|
@ -1298,12 +1298,6 @@ FinalizePlan(PlannedStmt *localPlan, DistributedPlan *distributedPlan)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case MULTI_EXECUTOR_TASK_TRACKER:
|
|
||||||
{
|
|
||||||
customScan->methods = &TaskTrackerCustomScanMethods;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
case MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT:
|
||||||
{
|
{
|
||||||
customScan->methods = &CoordinatorInsertSelectCustomScanMethods;
|
customScan->methods = &CoordinatorInsertSelectCustomScanMethods;
|
||||||
|
|
|
@ -916,15 +916,6 @@ ShouldRecursivelyPlanSubquery(Query *subquery, RecursivePlanningContext *context
|
||||||
*/
|
*/
|
||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@ typedef struct CitusScanState
|
||||||
|
|
||||||
/* custom scan methods for all executors */
|
/* custom scan methods for all executors */
|
||||||
extern CustomScanMethods AdaptiveExecutorCustomScanMethods;
|
extern CustomScanMethods AdaptiveExecutorCustomScanMethods;
|
||||||
extern CustomScanMethods TaskTrackerCustomScanMethods;
|
|
||||||
extern CustomScanMethods CoordinatorInsertSelectCustomScanMethods;
|
extern CustomScanMethods CoordinatorInsertSelectCustomScanMethods;
|
||||||
extern CustomScanMethods DelayedErrorCustomScanMethods;
|
extern CustomScanMethods DelayedErrorCustomScanMethods;
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,7 @@ typedef enum
|
||||||
{
|
{
|
||||||
MULTI_EXECUTOR_INVALID_FIRST = 0,
|
MULTI_EXECUTOR_INVALID_FIRST = 0,
|
||||||
MULTI_EXECUTOR_ADAPTIVE = 1,
|
MULTI_EXECUTOR_ADAPTIVE = 1,
|
||||||
MULTI_EXECUTOR_TASK_TRACKER = 2,
|
MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT = 2
|
||||||
MULTI_EXECUTOR_COORDINATOR_INSERT_SELECT = 3
|
|
||||||
} MultiExecutorType;
|
} MultiExecutorType;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue