pgrx-tests breaking changes
pgrx-tests 0.20.0 (November 12, 2026) is its newest release with breaking changes, 46 of them. The first: pgrx-tests 0.20.0 drops support for Rust 1.96 and requires Rust 1.99.1 or later. Every breaking API change we have recorded in pgrx-tests on crates.io: 90 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: 61 breaking changes in 2 versions.
pgrx-tests 0.20.0 breaking changes
- Removed
Rust 1.99.0 is excluded; update any toolchain pin or CI job that uses an older release. github.com - Removed
AssertBufferLocksPermitCatalogRead
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
castNodeImpl
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
check_for_interrupts!
Use the safe pgrx::check_for_interrupts function instead. github.com - Removed
CLOBBER_FREED_MEMORY
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
Debug_copy_parse_plan_trees
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
DEBUG_NODE_TESTS_ENABLED
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
Debug_raw_expression_coverage_test
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
Debug_write_read_parse_plan_trees
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
DISCARD_CACHES_ENABLED
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
GetLockMethodLocalHash
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
MEMORY_CONTEXT_CHECKING
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
MemoryContextCheck
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
pg_sys.heap_tuple_get_struct
Call the generated macro with the PostgreSQL name instead. github.com - Removed
pg13
Remove the pg13 feature, code gated on it, and CI jobs for it; change default if it names pg13. github.com - Removed
pg14
Remove the pg14 feature, code gated on it, and CI jobs for it; change default if it names pg14. github.com - Removed
PgRelation
Deref is gone; use oid(), tuple_desc() and as_ptr instead of fields like rd_id. github.com - Removed
pgrx.varsize_any
Call the generated macro with the PostgreSQL name instead and wrap it in unsafe. github.com - Removed
PgTupleDesc
Deref to PgBox<TupleDescData> is gone; use as_ptr and the header accessors. github.com - Removed
restore_location_fields
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
stringToNodeWithLocations
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Removed
USE_ASSERT_CHECKING
Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. github.com - Behavior changed
Vec of borrowed types and Array::into_iter no longer compile; read the array and use parts while alive. github.com - Behavior changed
Dependent extensions now share the tests schema; rebuild and reinstall test builds of dependency extensions. github.com - Behavior changed
Extension SQL may fail at CREATE EXTENSION; list objects it names in requires. github.com - Behavior changed
AnyArray
Elements read as raw Datum values now have sign-extended high bits; keep only the low 32 bits. github.com - Behavior changed
PgBox
Each PgBox read is a copy in CurrentMemoryContext; writes no longer change the array. github.com - Behavior changed
pgrx.fn_call.fn_call
Mismatched argument types now return IncompatibleArgumentType instead of calling the function. github.com - Behavior changed
pgrx.wrappers.rust_regtypein
Type lookup now uses extension-owned types only; other extensions' types need their own type_oid. github.com - Behavior changed
PgVarlena.into_pg
Varlena values now get a one-byte header when they fit; C code must use VARSIZE_ANY and VARDATA_ANY. github.com - Signature changed
<type>_recv
Generated receive function is now unsafe fn; Rust callers must use an unsafe block. github.com - Signature changed
AnyArray.into
Call it as AnyArray::into::<T>(&values) inside unsafe, or use the new value method. github.com - Signature changed
AssertTransactionIdInAllowableRange
Call it as a macro without unsafe instead of the unsafe function call. github.com - Signature changed
pg_sys.VARHDRSZ
pg_sys::VARHDRSZ is now i32 instead of usize; adjust code that uses it. github.com - Signature changed
PgHeapTuple.attributes
Method now yields FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgHeapTuple.get_attribute_by_index
Method now returns FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgHeapTuple.get_attribute_by_name
Method now returns FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgRelation.name
Method now returns an owned String instead of a &str. github.com - Signature changed
PgRelation.namespace
Method now returns an owned String instead of a &str. github.com - Signature changed
pgrx.htup.composite_row_type_make_tuple
Callers must pass a live composite Datum inside an unsafe block. github.com - Signature changed
pgrx.htup.DatumWithTypeInfo.into_value
Callers must pass a NULL or a value of typoid that T can read, inside unsafe. github.com - Signature changed
pgrx.htup.heap_getattr
Callers must pass a live tuple matching the descriptor inside an unsafe block. github.com - Signature changed
pgrx.htup.heap_getattr_datum_ex
Callers must pass a live tuple matching the descriptor inside an unsafe block. github.com - Signature changed
PgTupleDesc.get
Methods now return FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgTupleDesc.iter
Iteration now yields FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgVarlena.new
PgVarlena::new now requires T: Default and starts from T::default(). github.com
pgrx-tests 0.20.0-beta.1 breaking changes
- Removed
castNodeImpl
Bindings declared only by assert-enabled PostgreSQL builds are no longer generated, so code using them must be changed. github.com - Removed
MemoryContextCheck
Bindings declared only by assert-enabled PostgreSQL builds are no longer generated, so code using them must be changed. github.com - Removed
native-tls
Remove the rustls and native-tls features from any cargo install cargo-pgrx --features command; cargo-pgrx always uses rustls. github.com - Removed
pgrx.nullable.BitSliceNulls
BitSliceNulls is replaced by NullBitmap and the bitvec dependency is gone. github.com - Removed
PgXactCallbackEvent
PgXactCallbackEvent no longer implements enum_map::Enum, so code relying on that trait must change. github.com - Removed
RawArray.nulls_bitslice
RawArray::nulls_bitslice is removed along with the bitvec dependency. github.com - Removed
rustls
Remove the rustls and native-tls features from any cargo install cargo-pgrx --features command; cargo-pgrx always uses rustls. github.com - Removed
USE_ASSERT_CHECKING
Bindings declared only by assert-enabled PostgreSQL builds are no longer generated, so code using them must be changed. github.com - Behavior changed
On Linux and macOS, cargo pgrx init now uses the tar on your PATH and downloads a .tar.gz archive instead of .tar.bz2. github.com - Behavior changed
BufferGetPage!
A temporary created inside an operand of a macro like BufferGetPage! is now dropped when the macro finishes, not at the end of the statement. github.com
And 5 more in this version. Sign up to see every change
pgrx-tests 0.20.0-beta.0 breaking changes
- Removed
pgrx no longer supports Postgres 13 and 14. Remove the pg13 and pg14 features from Cargo.toml and change default if it names one of them. github.com - Removed
check_for_interrupts!
The hand-written macro is removed. Call the safe pgrx::check_for_interrupts() function instead. github.com - Removed
pg_sys.heap_tuple_get_struct
The hand-written helper is gone. The migration guide lists its replacement. github.com - Removed
pgrx.srf_*
The hand-written set-returning-function helpers are gone. The C macro guide lists each replacement. github.com - Removed
pgrx.varsize_any
The hand-written port is gone. Call the generated VARSIZE_ANY! macro inside an unsafe block and extract the result with .get(). github.com - Behavior changed
Reading text array elements as &str or String now checks encoding and panics on invalid data instead of producing an invalid str. github.com - Behavior changed
A generated macro that reads storage or backend state now needs an unsafe block, even where the helper it replaces was safe. github.com - Behavior changed
The generated schema can now list statements in a different order. Add requires entries for objects from elsewhere in your extension, or CREATE EXTENSION can fail. github.com - Behavior changed
Vec<Part<'_>> arguments no longer compile for lifetime-borrowing PostgresType values. Use Array<'_, Part<'_>> instead. github.com - Behavior changed
cargo pgrx regress
Only a file named exactly setup.sql is the setup file. Other names such as post_setup.sql now run as ordinary tests. github.com
And 19 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.