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)
|
||||
{
|
||||
PlannedStmt *result = makeNode(PlannedStmt);
|
||||
SeqScan *seqScanNode = makeNode(SeqScan);
|
||||
Plan *plan = &seqScanNode->plan;
|
||||
Scan *scanNode = makeNode(Scan);
|
||||
Plan *plan = &scanNode->plan;
|
||||
|
||||
Node *distKey PG_USED_FOR_ASSERTS_ONLY = NULL;
|
||||
|
||||
AssertArg(FastPathRouterQuery(parse, &distKey));
|
||||
|
||||
/* there is only a single relation rte */
|
||||
seqScanNode->scanrelid = 1;
|
||||
scanNode->scanrelid = 1;
|
||||
|
||||
plan->targetlist =
|
||||
copyObject(FetchStatementTargetList((Node *) parse));
|
||||
|
|
Loading…
Reference in New Issue