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
Jeff Davis 2022-04-10 13:56:22 -07:00 committed by jeff-davis
parent 3799f95742
commit bd455f42e3
1 changed files with 3 additions and 3 deletions

View File

@ -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));