Welcome to pgrx v0.12.4.
First, and most importantly, it fixes a segfault when converting a NULL pg_sys::Datum
into a Rust String
. It seems you'd need to go out of your way to cause the segfault, but nonetheless, it shouldn't happen. A NULL Datum should convert to Option::None
in all situations.
Secondly, @aykut-bozkurt has properly defined microseconds, which is critical for proper Time conversions.
From there, @usamoi enhanced our bindings generation such that we now auto-generate wrappers for any of Postgres' static inline
functions in the included headers. This is great as it eliminates our need to manually write these wrappers and it automatically exposes a lot more.
And thanks to @YohDeadfall AnyArray
is now iterable!
As always, please upgrade using cargo install cargo-pgrx --version 0.12.4 --locked
. Then you can use cargo pgrx upgrade
to update the dependencies in your extension crates.
What's Changed
- use bindgen to generate wrappers of static inline functions by @usamoi in #1844
- Unified argument names of Query methods by @YohDeadfall in #1848
- Fixes wrong value for microsecs in a day by @aykut-bozkurt in #1849
- fix segfault converting a null
pg_sys::Datum
to aString
by @eeeebbbbrrrr in #1853 - Added into_iter for anyarray by @YohDeadfall in #1851
Full Changelog: v0.12.3...v0.12.4