add command execution -3

replace_m_row_insert_select
Onder Kalaci 2020-05-08 15:57:04 +02:00
parent acd661b715
commit b8e42ab608
2 changed files with 9 additions and 0 deletions

View File

@ -268,6 +268,13 @@ distributed_planner(Query *parse, int cursorOptions, ParamListInfo boundParams)
* restriction information per table and parse tree transformations made by
* 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));
planContext.plan = standard_planner(planContext.query,
planContext.cursorOptions,
planContext.boundParams);

View File

@ -322,6 +322,8 @@ DistributedInsertSelectSupported(Query *queryTree, RangeTblEntry *insertRte,
char targetPartitionMethod = PartitionMethod(targetRelationId);
ListCell *rangeTableCell = NULL;
return false;
/* we only do this check for INSERT ... SELECT queries */
AssertArg(InsertSelectIntoCitusTable(queryTree));