pgrx-pg-config breaking changes
pgrx-pg-config 0.20.0 (November 12, 2026) is its newest release with breaking changes, 37 of them. The first: pgrx-pg-config 0.20.0 requires Rust 1.99.1 or later. Every breaking API change we have recorded in pgrx-pg-config on crates.io: 51 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.20.1, released November 22, 2026. Source repository
Its 0.20.0 release requires Rust 1.99.1 or later. Rust end of life dates.
- From 0.20.0-beta.0 to 0.20.0: 38 breaking changes in 2 versions.
pgrx-pg-config 0.20.0 breaking changes
- Removed
Rust 1.96 is no longer supported and Rust 1.99.0 is excluded. Update the toolchain and any rust-toolchain.toml or CI pin. github.com - Removed
The pg13 and pg14 features are removed. Remove them from Cargo.toml, remove code gated on them, and drop their CI jobs. github.com - Removed
check_for_interrupts!
Call the safe function pgrx::check_for_interrupts() instead. github.com - Removed
pg_sys.GetLockMethodLocalHash
This binding existed only on assert-enabled PostgreSQL builds and is now gone from every build. github.com - Removed
pg_sys.heap_tuple_get_struct
It is no longer a Rust port. Call the generated macro with the PostgreSQL name instead. github.com - Removed
pg_sys.MemoryContextCheck
This binding existed only on assert-enabled PostgreSQL builds and is now gone from every build. github.com - Removed
PgRelation
Use oid() instead of rd_id and tuple_desc() instead of rd_att, and read other fields through as_ptr. github.com - Removed
pgrx_pg_config::cargo::PgrxManifestExt
pgrx_pg_config::cargo::PgrxManifestExt was removed in pgrx-pg-config 0.20.0 crates.io - Removed
pgrx_pg_config::cargo::read_manifest
pgrx_pg_config::cargo::read_manifest was removed in pgrx-pg-config 0.20.0 crates.io - Removed
pgrx.varsize_any
Call the generated VARSIZE_ANY! macro in unsafe code and extract the result with get(). github.com - Removed
PgTupleDesc
Use as_ptr, len, oid, typmod or refcount instead of reading fields through a reference. github.com - Behavior changed
Cross-compiling needs headers configured for the target, selected through the documented environment variables. github.com - Behavior changed
Vec of borrowed types and Array::into_iter no longer compile; read the array as an Array and use parts while it is alive. github.com - Behavior changed
Non-UTF-8 text or varchar elements now panic, and in non-UTF-8 databases any non-ASCII element panics. github.com - Behavior changed
Statements are ordered by declared dependencies, so extension_sql blocks that name external objects must list them in requires. github.com - Behavior changed
Array.get
Each PgBox read is now a copy in CurrentMemoryContext, so writes through it no longer change the array. github.com - Behavior changed
fn_call_with_collation
Arguments that need a cast now return IncompatibleArgumentType instead of being passed unchecked. github.com - Behavior changed
IntoDatum
The Datum now matches Float4GetDatum and CharGetDatum, which changes raw Datum values code may inspect. github.com - Behavior changed
pgrx.fn_call.fn_call
Arguments whose types do not match a parameter now return IncompatibleArgumentType instead of calling the function unchecked. github.com - Behavior changed
pgrx.wrappers.rust_regtypein
Types are looked up in the extension rather than search_path, and types of other extensions need their own type_oid. github.com - Configuration changed
pg-sys generates C macros on every build, so builds need a clang driver matching libclang and the matching llvm-ar. github.com - Configuration changed
Gentoo-style clang drivers that load a default configuration file are refused unless CLANG_NO_DEFAULT_CONFIG=1 is set. github.com - Signature changed
The pgrx-pg-config crate's API changed in this release. Code that calls it directly must be updated to the new API described in the 0.20.0 migration guide. github.com - Signature changed
<type>_recv
Rust callers must wrap direct calls in unsafe and pass a valid StringInfoData. SQL and COPY usage is unchanged. github.com - Signature changed
AnyArray.into
Call it as AnyArray::into::<T>(&values) in unsafe code, or use the new checked value method. github.com - Signature changed
pg_sys.VARHDRSZ
Code that relies on the usize type of VARHDRSZ must convert it. github.com - Signature changed
PgRelation.name
It now returns an owned String instead of &str. github.com - Signature changed
PgRelation.namespace
It now returns an owned String instead of &str and panics when the namespace does not exist. github.com - Signature changed
pgrx_pg_config::PgConfig::url
Was fn url(&self) -> Option<&Url>; now fn url(&self) -> Option<&str>. crates.io - Signature changed
pgrx_pg_config::PgVersion::new
Implement Default for the type, or use the unsafe new_zeroed where all-zero bytes are a valid value. crates.io - Signature changed
pgrx_pg_config::PgVersion::url
Was url: Option<Url>; now url: Option<String>. crates.io - Signature changed
pgrx.htup.composite_row_type_make_tuple
Callers must wrap calls in unsafe and pass a live composite Datum. github.com - Signature changed
pgrx.htup.DatumWithTypeInfo.into_value
Callers must wrap calls in unsafe and pass a NULL or a value of typoid that T can read. github.com - Signature changed
pgrx.htup.heap_getattr
Callers must wrap calls in unsafe and pass a live tuple matching the descriptor. github.com - Signature changed
pgrx.htup.heap_getattr_datum_ex
Callers must wrap calls in unsafe and meet the documented Safety requirements. github.com - Signature changed
PgTupleDesc.get
It now returns FormData_pg_attribute by value instead of a reference, so code binding references must change. github.com - Signature changed
PgTupleDesc.iter
It now yields FormData_pg_attribute by value instead of a reference. Patterns on the old reference types must drop the & or *. github.com
pgrx-pg-config 0.20.0-beta.1 breaking changes
- Signature changed
The release changes the pgrx-pg-config API. Code that calls it directly must be updated following the v0.20.0 migration guide. github.com
pgrx-pg-config 0.20.0-beta.0 breaking changes
- Removed
Remove the pg13 and pg14 features from Cargo.toml and change default if it names one of them. github.com - Removed
check_for_interrupts!
Call the safe pgrx::check_for_interrupts() function instead. github.com - Removed
pg_sys.heap_tuple_get_struct
The hand-written port is gone; the migration guide lists replacements for each removed helper. github.com - Removed
pgrx.srf_*
The hand-written SRF helpers are gone; see the C macro guide for replacements. github.com - Removed
pgrx.varsize_any
Use the generated VARSIZE_ANY! macro inside an unsafe block and extract the result with get(). github.com - Behavior changed
Other files such as post_setup.sql now run as ordinary tests instead of setup scripts. github.com - Behavior changed
Existing [package.metadata.deb] sections use different keys and can make cargo pgrx package fail; update them. github.com - Behavior changed
If an extension_sql! block names an object from elsewhere, list it in requires or CREATE EXTENSION can fail. github.com - Behavior changed
Reading text array elements as &str or String checks encoding and panics instead of producing an invalid str. github.com - Configuration changed
Builds need Rust 1.99.1; avoid Rust 1.99.0, which can miscompile some extern C functions returning bool. github.com
And 3 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.