mirror of https://github.com/citusdata/citus.git
add command execution -3
parent
b8e42ab608
commit
163de79971
|
@ -269,10 +269,10 @@ distributed_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
|
|||
* postgres' planner.
|
||||
*/
|
||||
|
||||
RangeTblEntry *subqueryRte = ExtractSelectRangeTableEntry(planContext.originalQuery);
|
||||
subqueryRte = linitial(subqueryRte->subquery->rtable);
|
||||
RangeTblEntry *valuesRte = linitial(subqueryRte->subquery->rtable);
|
||||
elog(INFO, "valuesRte: %d len: %d",valuesRte->rtekind, list_length(valuesRte->values_lists));
|
||||
// RangeTblEntry *subqueryRte = ExtractSelectRangeTableEntry(planContext.originalQuery);
|
||||
// subqueryRte = linitial(subqueryRte->subquery->rtable);
|
||||
// RangeTblEntry *valuesRte = linitial(subqueryRte->subquery->rtable);
|
||||
// elog(INFO, "valuesRte: %d len: %d",valuesRte->rtekind, list_length(valuesRte->values_lists));
|
||||
|
||||
|
||||
planContext.plan = standard_planner(planContext.query,
|
||||
|
|
|
@ -322,7 +322,9 @@ DistributedInsertSelectSupported(Query *queryTree, RangeTblEntry *insertRte,
|
|||
char targetPartitionMethod = PartitionMethod(targetRelationId);
|
||||
ListCell *rangeTableCell = NULL;
|
||||
|
||||
return false;
|
||||
return DeferredError(ERRCODE_FEATURE_NOT_SUPPORTED,
|
||||
"cannot insert into view over distributed table",
|
||||
NULL, NULL);
|
||||
|
||||
/* we only do this check for INSERT ... SELECT queries */
|
||||
AssertArg(InsertSelectIntoCitusTable(queryTree));
|
||||
|
|
Loading…
Reference in New Issue