From b1fbc7f134279bebc71aa02499dadfee4f8f4b81 Mon Sep 17 00:00:00 2001 From: Regina Obe <4734450+robe2@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:05:26 -0400 Subject: [PATCH] PG 17 support (#256) - Fix compile PostgreSQL 17 - Add pg17 to CI Closes #255 --- .github/workflows/ci.yml | 1 + ogr_fdw.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4cf323..6023288 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,6 +20,7 @@ jobs: - { PGVER: 14 } - { PGVER: 15 } - { PGVER: 16 } + - { PGVER: 17 } runs-on: ubuntu-latest steps: diff --git a/ogr_fdw.c b/ogr_fdw.c index 2ac5806..44ff96f 100644 --- a/ogr_fdw.c +++ b/ogr_fdw.c @@ -954,6 +954,9 @@ ogrGetForeignPaths(PlannerInfo* root, NIL, /* no pathkeys */ NULL, /* no outer rel either */ NULL /* no extra plan */ +#if PG_VERSION_NUM >= 170000 + , NIL /* no fdw_restrictinfo list */ +#endif #if PG_VERSION_NUM >= 90500 , NIL /* no fdw_private list */ #endif