mirror of https://github.com/citusdata/citus.git
PG15: handle change to SeqScan structure.
Account for PG commit 2226b4189b. The one site dependent on it can do just as well with a Scan instead of a SeqScan.pull/5920/head
parent
3799f95742
commit
bd455f42e3
|
@ -102,15 +102,15 @@ PlannedStmt *
|
||||||
GeneratePlaceHolderPlannedStmt(Query *parse)
|
GeneratePlaceHolderPlannedStmt(Query *parse)
|
||||||
{
|
{
|
||||||
PlannedStmt *result = makeNode(PlannedStmt);
|
PlannedStmt *result = makeNode(PlannedStmt);
|
||||||
SeqScan *seqScanNode = makeNode(SeqScan);
|
Scan *scanNode = makeNode(Scan);
|
||||||
Plan *plan = &seqScanNode->plan;
|
Plan *plan = &scanNode->plan;
|
||||||
|
|
||||||
Node *distKey PG_USED_FOR_ASSERTS_ONLY = NULL;
|
Node *distKey PG_USED_FOR_ASSERTS_ONLY = NULL;
|
||||||
|
|
||||||
AssertArg(FastPathRouterQuery(parse, &distKey));
|
AssertArg(FastPathRouterQuery(parse, &distKey));
|
||||||
|
|
||||||
/* there is only a single relation rte */
|
/* there is only a single relation rte */
|
||||||
seqScanNode->scanrelid = 1;
|
scanNode->scanrelid = 1;
|
||||||
|
|
||||||
plan->targetlist =
|
plan->targetlist =
|
||||||
copyObject(FetchStatementTargetList((Node *) parse));
|
copyObject(FetchStatementTargetList((Node *) parse));
|
||||||
|
|
Loading…
Reference in New Issue