-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: support pg13 #134
feat: support pg13 #134
Conversation
The error is strange -- |
18f1db2
to
a9a6a30
Compare
Seems like it's good after @Weijun-H's PG17 support PR re: wrappers! Probably only need to enable PG13 in any other test and add it to the README and fix the tests andwe should be all set :) |
If you rebase, there's a workflow file called |
a9a6a30
to
45f00f8
Compare
Postgres segfaults when running CREATE FOREIGN DATA WRAPPER parquet_wrapper HANDLER parquet_fdw_handler VALIDATOR parquet_fdw_validator;
CREATE SERVER parquet_server FOREIGN DATA WRAPPER parquet_wrapper;
CREATE FOREIGN TABLE MyTable (boolean_col boolean,int8_col smallint,int16_col smallint,int32_col integer,int64_col bigint,uint8_col smallint,uint16_col integer,uint32_col bigint,uint64_col numeric(20),float32_col real,float64_col double precision,date32_col date,date64_col date,binary_col bytea,large_binary_col bytea,utf8_col text,large_utf8_col text) SERVER parquet_server OPTIONS (files '/tmp/.tmpSNcAfR/test_arrow_types.parquet'); I get the same segfault locally as well. Has this been experienced before? I'll look into debugging it later but should this be reported as a Postgres bug? |
I would suspect this is an issue with |
I ran the tests locally on pg16 and they all ran fine, I haven't tried other versions than that |
Yeah. Then this isn't a Postgres bug I'd suspect it's a bug in our code. Two options come to mind:
|
Actually... https://fdw.dev/guides/limitations/. |
Actually 2: supabase/wrappers#313 They did merge PG13 support, but perhaps just didn't update the documentation Perhaps you can use the PR here to see what might be missing from our code to support PG13. |
UPDATE: I did some debugging with lldb and figured out it segfaults when running It works as intended when specifying the schema name when creating the foreign table ( I'll have a look at fetching the schema for cases when its not supplied. |
Great find! We may need to #cfg a specific PG version for some function |
Actually read for review 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!! Could you also add PG13 to the publish workflow, and reactivate the check-schema-upgrade
workflow now that we support PG13?
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also have a few places in the documentation in the README we might want to highlight that PG13 is now supported/we support all official PGDG versions.
Thank you for doing this, this is huge!
Ticket(s) Closed
What
Support for Postgres 13
How
Manually fetch the current schema if needed in
auto_create_schema_hook
. This is needed because the pointer to the schema name isnull
if the schema isn't explicitly specified in theCREATE FOREIGN TABLE
statement.Tests
All existing tests pass