pgrx breaking changes
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: 194 breaking changes in 2 versions.
pgrx 0.20.0 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 - Removed
Update any Rust toolchain pin or CI job that uses an older release. Rust 1.99.0 is excluded. github.com - Removed
cargo pgrx init now downloads .tar.gz archives and uses the tar on PATH. github.com - Removed
Remove the pg13 and pg14 features from Cargo.toml and change default if it names one of them. github.com - Removed
castNodeImpl
castNodeImpl is gone from every build. github.com - Removed
check_for_interrupts!
Replace the check_for_interrupts! macro with the pgrx::check_for_interrupts() function. github.com - Removed
MemoryContextCheck
Bindings only an assert-enabled Postgres declares, such as MemoryContextCheck, are gone. github.com - Removed
pg_sys.GetLockMethodLocalHash
Bindings declared only by an assert-enabled PostgreSQL are gone from every build. github.com - Removed
pg_sys.heap_tuple_get_struct
The hand-written port is removed; see the C macro migration guide for its replacement. github.com - Removed
pg_sys.MemoryContextCheck
Bindings declared only by an assert-enabled PostgreSQL are gone from every build. github.com - 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 - Removed
pgrx::array::RawArray::nulls_bitslice
RawArray::nulls_bitslice is gone; use the NullBitmap replacement instead. crates.io - Removed
pgrx::callconv::FcInfo::init_multi_func_call
pgrx::callconv::FcInfo::init_multi_func_call was removed in pgrx 0.20.0 crates.io - Removed
pgrx::callconv::FcInfo::srf_is_initialized
pgrx::callconv::FcInfo::srf_is_initialized was removed in pgrx 0.20.0 crates.io - Removed
pgrx::callconv::FcInfo::srf_return_done
pgrx::callconv::FcInfo::srf_return_done was removed in pgrx 0.20.0 crates.io - Removed
pgrx::callconv::FcInfo::srf_return_next
pgrx::callconv::FcInfo::srf_return_next was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_arg_is_null
pgrx::fcinfo::pg_arg_is_null was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_get_collation
pgrx::fcinfo::pg_get_collation was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_getarg_datum
pgrx::fcinfo::pg_getarg_datum was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_getarg_datum_raw
pgrx::fcinfo::pg_getarg_datum_raw was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_return_null
pgrx::fcinfo::pg_return_null was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::pg_return_void
pgrx::fcinfo::pg_return_void was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::srf_first_call_init
pgrx::fcinfo::srf_first_call_init was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::srf_is_first_call
pgrx::fcinfo::srf_is_first_call was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::srf_per_call_setup
pgrx::fcinfo::srf_per_call_setup was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::srf_return_done
pgrx::fcinfo::srf_return_done was removed in pgrx 0.20.0 crates.io - Removed
pgrx::fcinfo::srf_return_next
pgrx::fcinfo::srf_return_next was removed in pgrx 0.20.0 crates.io - Removed
pgrx::htup::heap_tuple_get_datum
pgrx::htup::heap_tuple_get_datum was removed in pgrx 0.20.0 crates.io - 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 - 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 - Removed
pgrx::htup::heap_tuple_header_get_typmod
pgrx::htup::heap_tuple_header_get_typmod was removed in pgrx 0.20.0 crates.io - Removed
pgrx::itemptr::item_pointer_get_block_number
pgrx::itemptr::item_pointer_get_block_number was removed in pgrx 0.20.0 crates.io - 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 - Removed
pgrx::itemptr::item_pointer_get_offset_number
pgrx::itemptr::item_pointer_get_offset_number was removed in pgrx 0.20.0 crates.io - 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 - Removed
pgrx::itemptr::item_pointer_is_valid
pgrx::itemptr::item_pointer_is_valid was removed in pgrx 0.20.0 crates.io - Removed
pgrx::itemptr::item_pointer_set_all
pgrx::itemptr::item_pointer_set_all was removed in pgrx 0.20.0 crates.io - Removed
pgrx::nodes::is_a
pgrx::nodes::is_a was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::called_as_trigger
pgrx::trigger_support::called_as_trigger was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_after
pgrx::trigger_support::trigger_fired_after was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_before
pgrx::trigger_support::trigger_fired_before was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_by_delete
pgrx::trigger_support::trigger_fired_by_delete was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_by_insert
pgrx::trigger_support::trigger_fired_by_insert was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_by_truncate
pgrx::trigger_support::trigger_fired_by_truncate was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_by_update
pgrx::trigger_support::trigger_fired_by_update was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_for_row
pgrx::trigger_support::trigger_fired_for_row was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_for_statement
pgrx::trigger_support::trigger_fired_for_statement was removed in pgrx 0.20.0 crates.io - Removed
pgrx::trigger_support::trigger_fired_instead
pgrx::trigger_support::trigger_fired_instead was removed in pgrx 0.20.0 crates.io - Removed
pgrx::tupdesc::release_tupdesc
pgrx::tupdesc::release_tupdesc was removed in pgrx 0.20.0 crates.io - Removed
pgrx::varlena::set_varsize
pgrx::varlena::set_varsize was removed in pgrx 0.20.0 crates.io
And 131 more in this version. Sign up to see every change
pgrx 0.20.0-beta.1 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 - 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 - Removed
pgrx::nullable::BitSliceNulls
Use NullBitmap in place of BitSliceNulls; the bitvec dependency is also gone. crates.io - Removed
PgXactCallbackEvent
Code relying on the enum_map::Enum implementation for PgXactCallbackEvent will no longer compile. github.com - 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 - 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 - 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 - 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 - 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 - 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
And 3 more in this version. Sign up to see every change
pgrx 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 new safe pgrx::check_for_interrupts() function instead of the macro. github.com - 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 - Removed
pgrx.srf_*
The srf helper functions are gone; use the replacements listed in the C macro migration guide. github.com - Behavior changed
Reading text array elements as &str or String panics on invalid encoding instead of producing an invalid str. github.com - Behavior changed
Add objects from elsewhere in the extension to requires in extension_sql! blocks so CREATE EXTENSION does not fail. github.com - Behavior changed
cargo pgrx regress
Files such as post_setup.sql now run as ordinary regression tests. github.com - Behavior changed
rust_regtypein
An extension's own type with a catalog-like name no longer resolves to the pg_catalog type. github.com - Configuration changed
Install a clang whose major version matches libclang and llvm-ar from the same LLVM release. github.com - Configuration changed
A [package.metadata.deb] section using cargo deb keys may need to be changed before cargo pgrx package works. github.com
And 8 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.