---
title: "pgrx-tests 0.20.0 Breaking Changes on crates.io | Since.dev"
description: "What each pgrx-tests release removed, renamed or changed: 90 breaking changes in 3 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/pgrx-tests
last_updated: 2026-12-04
---

# 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

Latest version `0.20.1`, released November 22, 2026. [Source repository](https://github.com/pgcentralfoundation/pgrx)

Its 0.20.0 release requires Rust 1.99.1 or later. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.20.0-beta.0](#v-0-20-0-beta-0) to [0.20.0](#v-0-20-0): 61 breaking changes in 2 versions.

## pgrx-tests 0.20.0 breaking changes

pgrx-tests 0.20.0, released November 12, 2026: 46 breaking changes.

- **Removed**  

Rust 1.99.0 is excluded; update any toolchain pin or CI job that uses an older release. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `AssertBufferLocksPermitCatalogRead`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `castNodeImpl`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `check_for_interrupts!`  

Use the safe pgrx::check_for_interrupts function instead. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `CLOBBER_FREED_MEMORY`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `Debug_copy_parse_plan_trees`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `DEBUG_NODE_TESTS_ENABLED`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `Debug_raw_expression_coverage_test`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `DISCARD_CACHES_ENABLED`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `GetLockMethodLocalHash`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `MEMORY_CONTEXT_CHECKING`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `MemoryContextCheck`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg_sys.heap_tuple_get_struct`  

Call the generated macro with the PostgreSQL name instead. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg13`  

Remove the pg13 feature, code gated on it, and CI jobs for it; change default if it names pg13. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg14`  

Remove the pg14 feature, code gated on it, and CI jobs for it; change default if it names pg14. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `PgRelation`  

Deref is gone; use oid(), tuple_desc() and as_ptr instead of fields like rd_id. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pgrx.varsize_any`  

Call the generated macro with the PostgreSQL name instead and wrap it in unsafe. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `PgTupleDesc`  

Deref to PgBox\<TupleDescData> is gone; use as_ptr and the header accessors. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `restore_location_fields`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `stringToNodeWithLocations`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `USE_ASSERT_CHECKING`  

Only an assert-enabled PostgreSQL 18 declared it; it is no longer bound in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Vec of borrowed types and Array::into_iter no longer compile; read the array and use parts while alive. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Dependent extensions now share the tests schema; rebuild and reinstall test builds of dependency extensions. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Behavior changed**  

Extension SQL may fail at CREATE EXTENSION; list objects it names in requires. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `AnyArray`  

Elements read as raw Datum values now have sign-extended high bits; keep only the low 32 bits. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `PgBox`  

Each PgBox read is a copy in CurrentMemoryContext; writes no longer change the array. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `pgrx.fn_call.fn_call`  

Mismatched argument types now return IncompatibleArgumentType instead of calling the function. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `pgrx.wrappers.rust_regtypein`  

Type lookup now uses extension-owned types only; other extensions' types need their own type_oid. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `<type>_recv`  

Generated receive function is now unsafe fn; Rust callers must use an unsafe block. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `AnyArray.into`  

Call it as AnyArray::into::\<T>(&values) inside unsafe, or use the new value method. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `AssertTransactionIdInAllowableRange`  

Call it as a macro without unsafe instead of the unsafe function call. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pg_sys.VARHDRSZ`  

pg_sys::VARHDRSZ is now i32 instead of usize; adjust code that uses it. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgHeapTuple.attributes`  

Method now yields FormData_pg_attribute by value instead of a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgHeapTuple.get_attribute_by_index`  

Method now returns FormData_pg_attribute by value instead of a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgHeapTuple.get_attribute_by_name`  

Method now returns FormData_pg_attribute by value instead of a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgRelation.name`  

Method now returns an owned String instead of a &str. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgRelation.namespace`  

Method now returns an owned String instead of a &str. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx.htup.composite_row_type_make_tuple`  

Callers must pass a live composite Datum inside an unsafe block. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx.htup.heap_getattr`  

Callers must pass a live tuple matching the descriptor inside an unsafe block. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx.htup.heap_getattr_datum_ex`  

Callers must pass a live tuple matching the descriptor inside an unsafe block. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgTupleDesc.get`  

Methods now return FormData_pg_attribute by value instead of a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgTupleDesc.iter`  

Iteration now yields FormData_pg_attribute by value instead of a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgVarlena.new`  

PgVarlena::new now requires T: Default and starts from T::default(). [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)

## pgrx-tests 0.20.0-beta.1 breaking changes

pgrx-tests 0.20.0-beta.1, released November 12, 2026: 15 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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `MemoryContextCheck`  

Bindings declared only by assert-enabled PostgreSQL builds are no longer generated, so code using them must be changed. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `pgrx.nullable.BitSliceNulls`  

BitSliceNulls is replaced by NullBitmap and the bitvec dependency is gone. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `PgXactCallbackEvent`  

PgXactCallbackEvent no longer implements enum_map::Enum, so code relying on that trait must change. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `RawArray.nulls_bitslice`  

RawArray::nulls_bitslice is removed along with the bitvec dependency. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `rustls`  

Remove the rustls and native-tls features from any cargo install cargo-pgrx --features command; cargo-pgrx always uses rustls. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## pgrx-tests 0.20.0-beta.0 breaking changes

pgrx-tests 0.20.0-beta.0, released November 12, 2026: 29 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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `check_for_interrupts!`  

The hand-written macro is removed. Call the safe pgrx::check_for_interrupts() function instead. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `pg_sys.heap_tuple_get_struct`  

The hand-written helper is gone. The migration guide lists its replacement. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `pgrx.srf_*`  

The hand-written set-returning-function helpers are gone. The C macro guide lists each replacement. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

Vec\<Part<'\_>> arguments no longer compile for lifetime-borrowing PostgresType values. Use Array<'\_, Part<'\_>> instead. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **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](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)

And 19 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [pgrx](https://since.dev/packages/crates/pgrx.md)
- [pgrx-macros](https://since.dev/packages/crates/pgrx-macros.md)
- [pgrx-sql-entity-graph](https://since.dev/packages/crates/pgrx-sql-entity-graph.md)
- [pgrx-pg-config](https://since.dev/packages/crates/pgrx-pg-config.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
