-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Fix issue #1032 #1033
Fix issue #1032 #1033
Conversation
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.
This violates the compile-time guarantees we have provided until now. That is: we have previously assumed the responsibility for making PGX work against Postgres.
We should not enable this change except conditionally on the user explicitly requesting this be overwritten at compile time, in a way that we can detect when an issue is opened against PGX. It should be the user's responsibility, not ours, for whether their extension works against a bespoke Postgres fork.
What are you thinking here? |
I think a feature name can use all of Unicode, so we could go with |
and do we raise a compilation error if it's not "PostgreSQL" and that feature doesn't exist? Doing this pushes the burden of supporting Postgres forks onto pgx extension developers. Maybe that's where it belongs tho. We can't know everything. |
Yes, I think so. We could also lift this checking into |
Well, one can compile a pgx extension without I'll update the PR and we can see what it looks like. |
…erent ABI than "PostgreSQL" and fail to compile. Unless the `--unsafe-postgres` feature flag is present
Co-authored-by: Smittyvb <[email protected]>
this isn't working out like I had hoped. #grr |
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.
Looks good to me (but I did write some of it 😅)
You wrote all of it. In the discord input box! |
Blindly use the
FMGR_ABI_EXTRA
constant as part of the magic block. Hardcoding to "PostgreSQL" isn't exactly correct when using bindings from, for example, a Postgres fork that has purposely changed its ABI "name".