We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6c6d1fb commit87b9e42Copy full SHA for 87b9e42
vops_fdw.c
@@ -1402,7 +1402,8 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
1402
fpinfo->total_cost=total_cost;
1403
1404
/* Create and add foreign path to the grouping relation. */
1405
-grouppath=create_foreign_upper_path(root,
+#ifPG_VERSION_NUM>=120000
1406
+grouppath=create_foreign_upper_path(root,
1407
grouped_rel,
1408
grouped_rel->reltarget,
1409
rows,
@@ -1411,6 +1412,18 @@ add_foreign_grouping_paths(PlannerInfo *root, RelOptInfo *input_rel,
1411
1412
NIL,/* no pathkeys */
1413
NULL,
1414
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
1427
1428
/* Add generated path into grouped_rel by add_path(). */
1429
add_path(grouped_rel, (Path*)grouppath);