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

Upgrade to pgx 0.5.0 #547

Merged
merged 21 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
482 changes: 177 additions & 305 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sudo apt-get install make gcc pkg-config clang postgresql-server-dev-14 libssl-d

Next you need [cargo-pgx](https://github.com/tcdi/pgx), which can be installed with
```bash
cargo install --version '=0.4.5' --force cargo-pgx
cargo install --version '=0.5.0' --force cargo-pgx
```

You must reinstall cargo-pgx whenver you update your Rust compiler, since cargo-pgx needs to be built with the same compiler as Toolkit.
Expand Down
6 changes: 3 additions & 3 deletions extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ pg_test = ["approx"]
[dependencies]
# Keep synchronized with `cargo install --version N.N.N cargo-pgx` in Readme.md and docker/ci/Dockerfile
# Also `pgx-tests` down below in `dev-dependencies`.
pgx = "=0.4.5"
pgx-macros = "=0.4.5"
pgx = "=0.5.0"
pgx-macros = "=0.5.0"
encodings = {path="../crates/encodings"}
flat_serialize = {path="../crates/flat_serialize/flat_serialize"}
flat_serialize_macro = {path="../crates/flat_serialize/flat_serialize_macro"}
Expand Down Expand Up @@ -53,5 +53,5 @@ spfunc = "0.1.0"
statrs = "0.15.0"

[dev-dependencies]
pgx-tests = "=0.4.5"
pgx-tests = "=0.5.0"
approx = "0.4.0"
2 changes: 1 addition & 1 deletion extension/src/accessors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ ron_inout_funcs!(AccessorWithBounds);

#[pg_extern(immutable, parallel_safe, name = "with_bounds")]
pub fn accessor_with_bounds(bounds: crate::raw::tstzrange) -> AccessorWithBounds<'static> {
let range = unsafe { crate::range::get_range(bounds.0 as *mut pg_sys::varlena) };
let range = unsafe { crate::range::get_range(bounds.0.cast_mut_ptr()) };
let mut accessor = build! {
AccessorWithBounds {
lower: 0,
Expand Down
Loading