-
Notifications
You must be signed in to change notification settings - Fork 47
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
Upgrade to pgrx 0.12.8 and add PostgreSQL 17 support #824
Open
zilder
wants to merge
15
commits into
main
Choose a base branch
from
zilder/pgrx_0.12.7
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: Sebastian Webber <[email protected]> Signed-off-by: Vinh <[email protected]>
…lkit into pg17-support
WIP: Pg17
This container is built in CI with the current release, so use that one when testing.
issue with auto-generated functions) and more
zilder
force-pushed
the
zilder/pgrx_0.12.7
branch
from
November 4, 2024 14:45
5d062c4
to
74a96a9
Compare
Thank you so much for handling this! |
syvb
reviewed
Nov 4, 2024
bors.toml
Outdated
@@ -1,17 +1,19 @@ | |||
status = [ |
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 don't use bors anymore; this whole file can be removed.
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.
Thanks, I removed the file
JamesGuthrie
approved these changes
Nov 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Based on #820. Fixes compilation issues that came with pgrx 0.12.*.
Major changes:
pg_extern
macro expansion anymore. So allpg_extern
functions' return types now have to explicitly use `'static' lifetime._out
functions inPostgresType
macro do not work (do not compile) because they get their return type annotated with rust type's lifetime ('input
in our case). (This may actually be a bug and should probably be addressedpgrx
.) For this reason I added default implementation for_in
/_out
functions, as well as ArgAbi and BoxRet (it seems to be a package deal when you implement custom in/out functions)Minor things:
PostgresType
now requires a type to implementSerializable
/Deserializable
traits. As far as I understand they are used for default implementation ofIntoDatum
/FromDatum
. Toolkit has its own implementation for these so ser/de aren't really needed. Also the default implementation ofDeserializable
has some conflicts with type's lifetime, so I added a trivial implementation and putunimplemented!()
there as it isn't used anyway. If anyone has a better solution, pls let me know.BoxRet
implementation that is now also required byPostgresType
(I just copied the one that pgrx uses for a bunch of predefined types).NodeTag
is now anenum
hence manyconst => enum
replacements.pg_extern
objects that is) in toolkit haven't been set up properly causing incorrect order of DDL commands in the installation script.