Skip to content

Commit 87b9e42

Browse files
committed
[refer #PGPRO-3742] Fix build at PG-11
1 parent 6c6d1fb commit 87b9e42

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

Diff for: vops_fdw.c

+14-1
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,8 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
14021402
fpinfo->total_cost = total_cost;
14031403

14041404
/* Create and add foreign path to the grouping relation. */
1405-
grouppath = create_foreign_upper_path(root,
1405+
#if PG_VERSION_NUM>=120000
1406+
grouppath = create_foreign_upper_path(root,
14061407
grouped_rel,
14071408
grouped_rel->reltarget,
14081409
rows,
@@ -1411,6 +1412,18 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
14111412
NIL, /* no pathkeys */
14121413
NULL,
14131414
NIL); /* no fdw_private */
1415+
#else
1416+
grouppath = create_foreignscan_path(root,
1417+
grouped_rel,
1418+
grouped_rel->reltarget,
1419+
rows,
1420+
startup_cost,
1421+
total_cost,
1422+
NIL, /* no pathkeys */
1423+
grouped_rel->lateral_relids,
1424+
NULL,
1425+
NIL); /* no fdw_private */
1426+
#endif
14141427

14151428
/* Add generated path into grouped_rel by add_path(). */
14161429
add_path(grouped_rel, (Path *) grouppath);

0 commit comments

Comments
 (0)