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

# pgrx breaking changes

pgrx 0.20.0 (November 12, 2026) is its newest release with breaking changes, 181 of them. The first: Drops support for PostgreSQL 13 and 14 features in pgrx 0.20.0. Every breaking API change we have recorded in pgrx on crates.io: 212 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): 194 breaking changes in 2 versions.

## pgrx 0.20.0 breaking changes

pgrx 0.20.0, released November 12, 2026: 181 breaking changes.

- **Removed**  

Remove the pg13 and pg14 features, code gated on them, and CI jobs for those versions. Change any default feature that names one of them. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed**  

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

cargo pgrx init now downloads .tar.gz archives and uses the tar on PATH. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Removed**  

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)
- **Removed** `castNodeImpl`  

castNodeImpl is gone from every build. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Removed** `check_for_interrupts!`  

Replace the check_for_interrupts! macro with the pgrx::check_for_interrupts() function. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Removed** `MemoryContextCheck`  

Bindings only an assert-enabled Postgres declares, such as MemoryContextCheck, are gone. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Removed** `pg_sys.GetLockMethodLocalHash`  

Bindings declared only by an assert-enabled PostgreSQL are gone from every build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg_sys.heap_tuple_get_struct`  

The hand-written port is removed; see the C macro migration guide for its replacement. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Removed** `pg_sys.MemoryContextCheck`  

Bindings declared only by an assert-enabled PostgreSQL are gone from every build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `PgRelation`  

Use oid() instead of rd_id, tuple_desc() instead of rd_att, and as_ptr() to read other fields through the pointer. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pgrx::array::RawArray::nulls_bitslice`  

RawArray::nulls_bitslice is gone; use the NullBitmap replacement instead. [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::callconv::FcInfo::init_multi_func_call`  

pgrx::callconv::FcInfo::init_multi_func_call was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::callconv::FcInfo::srf_is_initialized`  

pgrx::callconv::FcInfo::srf_is_initialized was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::callconv::FcInfo::srf_return_done`  

pgrx::callconv::FcInfo::srf_return_done was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::callconv::FcInfo::srf_return_next`  

pgrx::callconv::FcInfo::srf_return_next was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_arg_is_null`  

pgrx::fcinfo::pg_arg_is_null was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_get_collation`  

pgrx::fcinfo::pg_get_collation was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_getarg_datum`  

pgrx::fcinfo::pg_getarg_datum was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_getarg_datum_raw`  

pgrx::fcinfo::pg_getarg_datum_raw was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_return_null`  

pgrx::fcinfo::pg_return_null was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::pg_return_void`  

pgrx::fcinfo::pg_return_void was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::srf_first_call_init`  

pgrx::fcinfo::srf_first_call_init was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::srf_is_first_call`  

pgrx::fcinfo::srf_is_first_call was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::srf_per_call_setup`  

pgrx::fcinfo::srf_per_call_setup was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::srf_return_done`  

pgrx::fcinfo::srf_return_done was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::fcinfo::srf_return_next`  

pgrx::fcinfo::srf_return_next was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::htup::heap_tuple_get_datum`  

pgrx::htup::heap_tuple_get_datum was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::htup::heap_tuple_header_get_datum_length`  

pgrx::htup::heap_tuple_header_get_datum_length was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::htup::heap_tuple_header_get_type_id`  

pgrx::htup::heap_tuple_header_get_type_id was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::htup::heap_tuple_header_get_typmod`  

pgrx::htup::heap_tuple_header_get_typmod was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_get_block_number`  

pgrx::itemptr::item_pointer_get_block_number was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_get_block_number_no_check`  

pgrx::itemptr::item_pointer_get_block_number_no_check was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_get_offset_number`  

pgrx::itemptr::item_pointer_get_offset_number was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_get_offset_number_no_check`  

pgrx::itemptr::item_pointer_get_offset_number_no_check was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_is_valid`  

pgrx::itemptr::item_pointer_is_valid was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::itemptr::item_pointer_set_all`  

pgrx::itemptr::item_pointer_set_all was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::nodes::is_a`  

pgrx::nodes::is_a was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::called_as_trigger`  

pgrx::trigger_support::called_as_trigger was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_after`  

pgrx::trigger_support::trigger_fired_after was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_before`  

pgrx::trigger_support::trigger_fired_before was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_by_delete`  

pgrx::trigger_support::trigger_fired_by_delete was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_by_insert`  

pgrx::trigger_support::trigger_fired_by_insert was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_by_truncate`  

pgrx::trigger_support::trigger_fired_by_truncate was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_by_update`  

pgrx::trigger_support::trigger_fired_by_update was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_for_row`  

pgrx::trigger_support::trigger_fired_for_row was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_for_statement`  

pgrx::trigger_support::trigger_fired_for_statement was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::trigger_support::trigger_fired_instead`  

pgrx::trigger_support::trigger_fired_instead was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::tupdesc::release_tupdesc`  

pgrx::tupdesc::release_tupdesc was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `pgrx::varlena::set_varsize`  

pgrx::varlena::set_varsize was removed in pgrx 0.20.0 [crates.io](https://crates.io/crates/pgrx/0.20.0)

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

## pgrx 0.20.0-beta.1 breaking changes

pgrx 0.20.0-beta.1, released November 12, 2026: 13 breaking changes.

- **Removed** `castNodeImpl`  

Bindings that only an assert-enabled Postgres declares are no longer generated, so code using them will not compile in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `MemoryContextCheck`  

Bindings that only an assert-enabled Postgres declares are no longer generated, so code using them will not compile in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `pgrx::nullable::BitSliceNulls`  

Use NullBitmap in place of BitSliceNulls; the bitvec dependency is also gone. [crates.io](https://crates.io/crates/pgrx/0.20.0)
- **Removed** `PgXactCallbackEvent`  

Code relying on the enum_map::Enum implementation for PgXactCallbackEvent will no longer compile. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Removed** `USE_ASSERT_CHECKING`  

Bindings that only an assert-enabled Postgres declares are no longer generated, so code using them will not compile in any build. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Behavior changed**  

On Linux and macOS, cargo pgrx init now needs tar on PATH and downloads the .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 such a macro 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)
- **Behavior changed** `PgTryBuilder.execute`  

After a Rust panic or ErrorReport, the error stack is no longer flushed, so code relying on the old flush behavior must adjust. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Behavior changed** `std.panic.catch_unwind`  

An ERROR swallowed with catch_unwind now remains on Postgres' error stack; catch it with PgTryBuilder or call pg_sys::FlushErrorState() afterwards. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)
- **Configuration changed** `pgrx_tests.client`  

Code using pgrx_tests::client() or pgrx_tests::postgres must enable the new client feature of pgrx-tests. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)

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

## pgrx 0.20.0-beta.0 breaking changes

pgrx 0.20.0-beta.0, released November 12, 2026: 18 breaking changes.

- **Removed**  

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!`  

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

The hand-written port is gone; use the generated macro equivalent listed in the C macro migration guide. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `pgrx.srf_*`  

The srf helper functions are gone; use the replacements listed in the C macro migration guide. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

Reading text array elements as &str or String panics on invalid encoding instead of producing an invalid str. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

Add objects from elsewhere in the extension to requires in extension_sql! blocks so CREATE EXTENSION does not fail. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed** `cargo pgrx regress`  

Files such as post_setup.sql now run as ordinary regression tests. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed** `rust_regtypein`  

An extension's own type with a catalog-like name no longer resolves to the pg_catalog type. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Configuration changed**  

Install a clang whose major version matches libclang and llvm-ar from the same LLVM release. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Configuration changed**  

A \[package.metadata.deb\] section using cargo deb keys may need to be changed before cargo pgrx package works. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)

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

## Related packages

- [pgrx-tests](https://since.dev/packages/crates/pgrx-tests.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.
