Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find List->elements #3

Open
daniel-garcia opened this issue Mar 4, 2022 · 1 comment
Open

Can't find List->elements #3

daniel-garcia opened this issue Mar 4, 2022 · 1 comment

Comments

@daniel-garcia
Copy link

I'm running ubuntu 20.04 with pg 12. When I try to compile I get this error.

dgarcia@dgarcia-vm:~/go/src/github.com/daniel-garcia/jdbc_fdw$ USE_PGXS=1 make
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -g -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fno-omit-frame-pointer -fPIC -D'PKG_LIB_DIR=/usr/lib/postgresql/12/lib' -I/usr/include/postgresql -I. -I./ -I/usr/include/postgresql/12/server -I/usr/include/postgresql/internal  -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -I/usr/include/libxml2  -I/usr/include/mit-krb5  -c -o jq.o jq.c
jq.c: In function ‘jq_iterate’:
jq.c:699:41: error: ‘List’ {aka ‘struct List’} has no member named ‘elements’
  699 |     int   column_index = retrieved_attrs->elements[i].int_value - 1;
      |                                         ^~
make: *** [<builtin>: jq.o] Error 1

Is there a particular version of postgres this compiles against?

@nxhai98
Copy link

nxhai98 commented Dec 6, 2022

Hello @daniel-garcia,

Thank you for reporting.

Currently, jdbc_fdw can work with Postgres PostgreSQL 13 and 14 versions only.
And we do not have planned to support older version for now.

Could you try with newer version of PostgreSQL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants