Skip to content

Commit 5a3b3b4

Browse files
authored
Update version to 0.13.0 (#1984)
Welcome to pgrx v0.13.0. The first update in a little bit, which makes pgrx current with upstream dependencies, rust 1.85.0 (but not 2024 Edition, yet), and a slew of fixes and cleanups and community contributions. # Upgrading You'll need to `cargo install cargo-pgrx --version 0.13.0 --locked` to get the latest `cargo-pgrx` tool, and then you can run `cargo pgrx upgrade` in your extension crates to update their dependencies. # Breaking Changes Generally, the only breaking changes in v0.13.0 are related to the user-facing SPI APIs. In general, SPI functions that previously took a Vec of Arguments now take a `&[DatumWithOid]`, with proper lifetime bounds. This is a fairly straightforward, boilerplate to update to. @YohDeadfall has done a lot of work on improving SPI's safety and it's greatly appreciated! # What's Changed ## `cargo-pgrx` * fix a deadlock in `cargo pgrx install` during `get_git_hash()` by @eeeebbbbrrrr in #1935 * `cargo pgrx test --runas` envar passing by @eeeebbbbrrrr in #1674 * Search for sql upgrade scripts relative to the package manifest by @tristan957 in #1979 ## Build System * use `allowlist_file` for bindgen by @usamoi in #1922 * add `pg_config --libdir` to linker search path by @usamoi in #1932 * lock patch version of pgrx-bindgen by @usamoi in #1939 * Introduce a blocklist of "yanked" Postgres versions by @eeeebbbbrrrr in #1950 * Make sure bindgen gets the cppflags even if we aren't using macOS by @thomcc in #1336 ## SPI * Made SPI query arguments type safe by @YohDeadfall in #1858 * Changed args of prepare methods to be slices by @YohDeadfall in #1933 * Added connect_mut for data changing SPI operations by @YohDeadfall in #1913 ## General `pgrx-pg-sys` Interfaces * Allow creating Oid from a u32 in a const context by @syvb in #1943 * Add utils/acl.h by @daamien in #1945 * Add catalog/catalog.h by @daamien in #1946 * Added `oids_of!` macro by @YohDeadfall in #1879 * Port `bufpage.h` functions by @rebasedming in #1982 ## Bug Fixes * Check wakeup_flags from `wait_latch` function to exit on `WL_POSTMASTER_DEATH` by @var77 in #1938 ## Overall Code Cleanup * refactor: remove redundant references (`&`) by @hamirmahal in #1941 * fix warnings by @usamoi in #1948 * Updating readme.md by @ChronicallyJD in #1949 * style: simplify some statements for readability by @hamirmahal in #1962 * docs: fix pgx info in cargo-pgrx README by @mrdrivingduck in #1953 * Updated expected UI test outputs by @YohDeadfall in #1981 * Fix "about" info for cross subcommand by @mjgarton in #1974 * update dependencies and fix compilation issues by @eeeebbbbrrrr in #1983 # Thanks! Thanks to the community, past, present, and future. Especially to our new contributors... # New Contributors * @var77 made their first contribution in #1938 * @ChronicallyJD made their first contribution in #1949 * @mrdrivingduck made their first contribution in #1953 * @tristan957 made their first contribution in #1979 * @mjgarton made their first contribution in #1974 **Full Changelog**: v0.12.7...v0.13.0
1 parent 5f29cae commit 5a3b3b4

File tree

17 files changed

+3533
-19955
lines changed

17 files changed

+3533
-19955
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ exclude = [
5555
cargo-pgrx = { path = "cargo-pgrx" }
5656

5757
[workspace.dependencies]
58-
pgrx-macros = { path = "./pgrx-macros", version = "=0.12.9" }
59-
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.12.9" }
60-
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.12.9" }
61-
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.12.9" }
62-
pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.12.9" }
58+
pgrx-macros = { path = "./pgrx-macros", version = "=0.13.0" }
59+
pgrx-pg-sys = { path = "./pgrx-pg-sys", version = "=0.13.0" }
60+
pgrx-sql-entity-graph = { path = "./pgrx-sql-entity-graph", version = "=0.13.0" }
61+
pgrx-pg-config = { path = "./pgrx-pg-config", version = "=0.13.0" }
62+
pgrx-bindgen = { path = "./pgrx-bindgen", version = "=0.13.0" }
6363

6464
cargo_metadata = "0.18.0"
6565
cargo-edit = "0.13.1" # format-preserving edits to cargo.toml

cargo-pgrx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "cargo-pgrx"
13-
version = "0.12.9"
13+
version = "0.13.0"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Cargo subcommand for 'pgrx' to make Postgres extension development easy"

cargo-pgrx/src/templates/cargo_toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ pg17 = ["pgrx/pg17", "pgrx-tests/pg17" ]
2121
pg_test = []
2222

2323
[dependencies]
24-
pgrx = "=0.12.9"
24+
pgrx = "=0.13.0"
2525

2626
[dev-dependencies]
27-
pgrx-tests = "=0.12.9"
27+
pgrx-tests = "=0.13.0"
2828

2929
[profile.dev]
3030
panic = "unwind"

pgrx-bindgen/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pgrx-bindgen"
33
description = "additional bindgen support for pgrx"
4-
version = "0.12.9"
4+
version = "0.13.0"
55
edition = "2021"
66
license = "MIT"
77
homepage = "https://github.com/pgcentralfoundation/pgrx"

pgrx-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-macros"
13-
version = "0.12.9"
13+
version = "0.13.0"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Proc Macros for 'pgrx'"

pgrx-pg-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-pg-config"
13-
version = "0.12.9"
13+
version = "0.13.0"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "A Postgres pg_config wrapper for 'pgrx'"

pgrx-pg-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
[package]
1212
name = "pgrx-pg-sys"
13-
version = "0.12.9"
13+
version = "0.13.0"
1414
authors = ["PgCentral Foundation, Inc. <[email protected]>"]
1515
license = "MIT"
1616
description = "Generated Rust bindings for Postgres internals, for use with 'pgrx'"

0 commit comments

Comments
 (0)