This repository was archived by the owner on Dec 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
PostgreSQL 17 support #109
Copy link
Copy link
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Hello!
I would like to request pg17 support for clickhouse_fdw.
When I build against PG17 using the latest released version (1.4.0), I get the following error:
[ 85%] Building C object src/CMakeFiles/clickhouse_fdw.dir/connection.c.o
<SNIP>
clickhouse_fdw/src/clickhouse_fdw.c: In function 'clickhouseGetForeignPaths':
clickhouse_fdw/src/clickhouse_fdw.c:514:15: error: too few arguments to function 'create_foreignscan_path'
514 | path= create_foreignscan_path(root, baserel, NULL,
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from clickhouse_fdw/src/clickhouse_fdw.c:32:
/usr/pgsql-17/include/server/optimizer/pathnode.h:125:21: note: declared here
125 | extern ForeignPath *create_foreignscan_path(PlannerInfo *root, RelOptInfo *rel,
| ^~~~~~~~~~~~~~~~~~~~~~~
clickhouse_fdw/src/clickhouse_fdw.c: In function 'clickhouseBeginForeignScan':
clickhouse_fdw/src/clickhouse_fdw.c:771:21: error: 'RangeTblEntry' has no member named 'checkAsUser'
771 | userid = rte->checkAsUser ? rte->checkAsUser : GetUserId();
| ^~
clickhouse_fdw/src/clickhouse_fdw.c:771:40: error: 'RangeTblEntry' has no member named 'checkAsUser'
771 | userid = rte->checkAsUser ? rte->checkAsUser : GetUserId();
| ^~
clickhouse_fdw/src/clickhouse_fdw.c: In function 'create_foreign_modify':
clickhouse_fdw/src/clickhouse_fdw.c:1380:21: error: 'RangeTblEntry' has no member named 'checkAsUser'
1380 | userid = rte->checkAsUser ? rte->checkAsUser : GetUserId();
| ^~
clickhouse_fdw/src/clickhouse_fdw.c:1380:40: error: 'RangeTblEntry' has no member named 'checkAsUser'
1380 | userid = rte->checkAsUser ? rte->checkAsUser : GetUserId();
| ^~
clickhouse_fdw/src/clickhouse_fdw.c: In function 'add_paths_with_pathkeys_for_rel':
clickhouse_fdw/src/clickhouse_fdw.c:1842:42: error: too few arguments to function 'create_foreignscan_path'
1842 | create_foreignscan_path(root, rel,
| ^~~~~~~~~~~~~~~~~~~~~~~
<SNIP... but there are more errors>
make: *** [Makefile:136: all] Error 2
I am compling on an Alma9 - x86_64 Linux box. I am unsure what changes would be required, so I thought I would raise the issue.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed