From bd455f42e3f9b3ffa917b41d4f1f859b6508e96b Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Sun, 10 Apr 2022 13:56:22 -0700 Subject: [PATCH] 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. --- src/backend/distributed/planner/fast_path_router_planner.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/distributed/planner/fast_path_router_planner.c b/src/backend/distributed/planner/fast_path_router_planner.c index 8a2d87fe7..5d02be07c 100644 --- a/src/backend/distributed/planner/fast_path_router_planner.c +++ b/src/backend/distributed/planner/fast_path_router_planner.c @@ -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));