mirror of https://github.com/citusdata/citus.git
Remove unnecessary pre-fastpath code (#7262)
This code was here because we first implemented `fast path planner` via [#2606](https://github.com/citusdata/citus/pull/2606) and then later `deferred pruning` [#3369](https://github.com/citusdata/citus/pull/3369) So, for some years, this code was useful.pull/7261/head
parent
2d1444188c
commit
1fe16fa746
|
@ -2324,27 +2324,11 @@ PlanRouterQuery(Query *originalQuery,
|
|||
TargetShardIntervalForFastPathQuery(originalQuery, &isMultiShardQuery,
|
||||
distributionKeyValue,
|
||||
partitionValueConst);
|
||||
|
||||
/*
|
||||
* This could only happen when there is a parameter on the distribution key.
|
||||
* We defer error here, later the planner is forced to use a generic plan
|
||||
* by assigning arbitrarily high cost to the plan.
|
||||
*/
|
||||
if (UpdateOrDeleteOrMergeQuery(originalQuery) && isMultiShardQuery)
|
||||
{
|
||||
planningError = DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||
"Router planner cannot handle multi-shard "
|
||||
"modify queries", NULL, NULL);
|
||||
return planningError;
|
||||
}
|
||||
Assert(!isMultiShardQuery);
|
||||
|
||||
*prunedShardIntervalListList = shardIntervalList;
|
||||
|
||||
if (!isMultiShardQuery)
|
||||
{
|
||||
ereport(DEBUG2, (errmsg("Distributed planning for a fast-path router "
|
||||
"query")));
|
||||
}
|
||||
ereport(DEBUG2, (errmsg("Distributed planning for a fast-path router "
|
||||
"query")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue