v0.19.0
Welcome to pgrx v0.19.0. Among other things, this brings support for Postgres v19beta1.
As usual, install cargo-pgrx with cargo install cargo-pgrx --version 0.19.0 --locked, and if you want Postgres 19beta1 support you'll also need to run cargo pgrx init. And make sure to update your crate dependencies with cargo pgrx upgrade.
What's Changed
- add pg19beta1 support by @eeeebbbbrrrr in #2303
The headline item. As more betas are released we'll release new pgrx point releases supporting them.
- upgrade dependencies and rust edition to 2024 by @eeeebbbbrrrr in #2312
Notably, pgrx wants to use the Rust 2024 edition now.
cargo-pgrx
- fix(cargo-pgrx): preserve cargo rustflags for cdylib builds by @eeeebbbbrrrr in #2304
Prior to this fix, RUSTFLAGS changes in .cargo/config.toml would have been ignored.
- Retry Postgres downloads during init by @eeeebbbbrrrr in #2314
- fix:
cargo pgrx schema named_sql_entityshould export schema-qualified by @eeeebbbbrrrr in #2310 - Replace cargo-edit with crates-index and toml_edit by @cbandy in #2305
- feat(cargo-pgrx): accept Cargo VersionReq syntax for upgrade --to by @isdaniel in #2321
New Features
Postgres Bindings and Wrappers
- feat: expose PGLZ compression bindings + add pglz_inspect example by @isdaniel in #2326
- fix: bridge buffer page helpers via cshim on PG16+ by @mrdrivingduck in #2331
- Fix binding of
struct Porton pg17 by @cbandy in #2302 - feat: add Bytea<'fcx> argument type with zero-copy return by @isdaniel in #2301
- Add wrappers for postgres geometric types. by @hamiltop in #1332
Bugfixes and Cleanup
- Guard pgrx docs.rs release builds by @eeeebbbbrrrr in #2315
- Fix docs.rs build by localizing docsrs cfg by @eeeebbbbrrrr in #2299
- remove redundant casts and improve safety in varlena functions by @isdaniel in #2298
- Update trybuild to 1.0.116 by @cbandy in #2306
- Quiet two errors from rust-analyzer by @cbandy in #2307
- fix dependabot security warnings by @eeeebbbbrrrr in #2313
- refactor: unify #[pg_extern] attribute parsing via syn by @isdaniel in #2317
- chore: add examples PostgresType in/out variants and memory-context patterns by @isdaniel in #2318
- docs(spi): clarify SpiClient::select vs update for read-only vs writable SPI by @uded in #2328
- fix pg19 drift by @eeeebbbbrrrr in #2330
New Contributors
Full Changelog: v0.18.1...v0.19.0