pgrx 0.14.0 - #219829
Merged
Merged
Conversation
branchv
approved these changes
Apr 12, 2025
Contributor
|
馃 An automated task has requested bottles to be published to this PR. Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
BrewTestBot
enabled auto-merge
April 12, 2025 17:36
BrewTestBot
added this pull request to the merge queue
Apr 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by
brew bumpCreated with
brew bump-formula-pr.Details
release notes
This change (using
extern "C-unwind") is important to call out separately as it'll require any functions with#[pg_guard]to be changed to use"C-unwind". This came about as a requirement for Windows, but is necessary for all supported platforms.Breaking Changes
pgrx::pg_guard: functions marked with#[pg_guard]must use theC-unwindABI, andpg_guardmacro generates an error for functions that do not use theC-unwindABI.pgrx::lwlock: the parameternameofPgLwLock::newis required;PgLwLock::from_namedis removed; the type of the parametervalueofPgLwLock::attachis changed.pgrx::atomic: the parameternameofPgAtomic::newis required.pgrx::pg_sys: ABI of all generated binding function types has been changed fromCtoC-unwind.pgrx-tests: on Linux, before usingcargo-pgrxwith--runas, you must relax kernel security restrictions by runningsudo sysctl fs.protected_fifos=0due to internal implementation details.Bug Fixes
API Changes (likely breaking)
DatumWithOid: Addnew_from_datum(Option<Datum>, Oid)andnull_oid(Oid)by @the-kenny inDatumWithOid: Addnew_from_datum(Option<Datum>, Oid)andnull_oid(Oid)聽pgcentralfoundation/pgrx#1999pgstatmacros by @YohDeadfall in Implemented pgstat macros聽pgcentralfoundation/pgrx#2007DisplayforOidby @YohDeadfall in ImplementedDisplayforOid聽pgcentralfoundation/pgrx#2029xidby @YohDeadfall in Added mapping forxid聽pgcentralfoundation/pgrx#2003This PR actually adds a hand-rolled representation for Postgres'
pg_sys::TransactionIdtype. As such, usages ofpg_sys::TransactionIdmay need adjustments. If we missed any UX for the type, please file issues (or PRs!) and we'll address them immediately. A benefit of this is that it's now possible to usepg_sys::TransactionIdas arguments or the return type of#[pg_extern]functions.Oid::as_u32toto_u32by @YohDeadfall in Renamed Oid::as_u32 to to_u32聽pgcentralfoundation/pgrx#2011New Features
PgHeapTuple::set_by_index_uncheckedby @silver-ymz in feat: addPgHeapTuple::set_by_index_unchecked聽pgcentralfoundation/pgrx#2012More Headers
storage/buf_internals.hby @eeeebbbbrrrr in includestorage/buf_internals.h聽pgcentralfoundation/pgrx#2008tsearch/ts_cache.hby @silver-ymz in includetsearch/ts_cache.h聽pgcentralfoundation/pgrx#2010utils/spccache.hby @usamoi in includeutils/spccache.h聽pgcentralfoundation/pgrx#2023Code Cleanups
IntoDatum, drop intermediate Vecs fortuplesby @vrmiguel in Dedup arrayIntoDatum, drop intermediate Vecs fortuples聽pgcentralfoundation/pgrx#2017A special thanks to @nyurik for this one. It was a lot of work and should make clippy users a lot happier!
Administrative/CI
rustfmtto use--edition 2021by @eeeebbbbrrrr in Instructrustfmtto use--edition 2021聽pgcentralfoundation/pgrx#2002Thank You!
I just want to send a sincere thank you to all the contributors for this release. It represents a lot of work and I'm sure they hope y'all enjoy it and can make good use of it!
New Contributors
Full Changelog: pgcentralfoundation/pgrx@v0.13.1...v0.14.0