Welcome to pgrx v0.13.1. This is a minor bugfix and non-breaking feature release.
As always, install the new cargo-pgrx
CLI tool with cargo install cargo-pgrx --version 0.13.1 --locked
and then run cargo pgrx upgrade
in your extension creates.
What's Changed
Bug Fixes
pg_sys::Oid::from_datum()
should cast tou32
by @eeeebbbbrrrr in #1991
The underlying bug here would only expose itself with OID values, which are generated by Postgres, larger than an i32::MAX
. As such, it's taken a few years for someone to run into this in the wild!
New Postgres Headers
- add
replication/logicalworker.h
by @eeeebbbbrrrr in #1985
Improved SQL Type Handling
- Implement SqlTranslatable for TableAmRoutine by @dpxcc in #1989
- feat: auto-generate type alignment (#[pgrx(alignment = "on")]) by @JamesGuthrie in #1942
Code Cleanup/Future Proofing
- Minor prettifications in SPI docs by @YohDeadfall in #1987
- use
unsafe extern
in pgrx_embed.rs by @usamoi in #1990
New cargo-pgrx run
Option
--install-only
option for cargo pgrx run command by @SergeiPatiakin in #1988
Running cargo pgrx run --install-only
will do exactly that -- only install the extension in the pgrx-managed Postgres instance. Note that it will also stop the Postgres instance if it's running, but it will not restart it.
New Contributors
Thanks to our new contributors! It's nice to see people scratching their own itches!!
- @SergeiPatiakin made their first contribution in #1988
- @dpxcc made their first contribution in #1989
Full Changelog: v0.13.0...v0.13.1