Skip to content

Commit 73d8029

Browse files
committed
fix: support PostgreSQL 17
1 parent 6ccc2a5 commit 73d8029

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

fdw/fdw.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,10 @@ static void fdwGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid forei
441441
NIL, /* no pathkeys */
442442
NULL,
443443
NULL,
444-
(void *)fdw_private));
444+
#if PG_VERSION_NUM >= 170000
445+
NULL,
446+
#endif
447+
(void *)fdw_private));
445448

446449
/* Add each ForeignPath previously found */
447450
foreach (lc, paths)
@@ -461,6 +464,9 @@ static void fdwGetForeignPaths(PlannerInfo *root, RelOptInfo *baserel, Oid forei
461464
path->path.startup_cost, path->path.total_cost,
462465
apply_pathkeys, NULL,
463466
NULL,
467+
#if PG_VERSION_NUM >= 170000
468+
NULL,
469+
#endif
464470
(void *)fdw_private);
465471
newpath->path.param_info = path->path.param_info;
466472
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)