Skip to content

Commit 315adba

Browse files
committed
fix: support PostgreSQL 17
1 parent b9cd110 commit 315adba

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

fdw/fdw.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ static void fdwGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid forei
264264
NIL, /* no pathkeys */
265265
NULL,
266266
NULL,
267-
(void *)fdw_private));
267+
#if PG_VERSION_NUM >= 170000
268+
NULL,
269+
#endif
270+
(void *)fdw_private));
268271

269272
/* Add each ForeignPath previously found */
270273
foreach (lc, paths)
@@ -284,6 +287,9 @@ static void fdwGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid forei
284287
path->path.startup_cost, path->path.total_cost,
285288
apply_pathkeys, NULL,
286289
NULL,
290+
#if PG_VERSION_NUM >= 170000
291+
NULL,
292+
#endif
287293
(void *)fdw_private);
288294
newpath->path.param_info = path->path.param_info;
289295
add_path(baserel, (Path *)newpath);

fdw/query.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,9 @@ findPaths(PlannerInfo *root, RelOptInfo *baserel, List *possiblePaths,
538538
NULL,
539539
#if PG_VERSION_NUM >= 90500
540540
NULL,
541+
#endif
542+
#if PG_VERSION_NUM >= 170000
543+
NULL,
541544
#endif
542545
NULL);
543546

0 commit comments

Comments
 (0)