pgrx-macros breaking changes
pgrx-macros 0.20.0 (November 12, 2026) is its newest release with breaking changes, 41 of them. The first: Drops PostgreSQL 13 and 14 support in pgrx-macros 0.20.0. Every breaking API change we have recorded in pgrx-macros on crates.io: 41 breaking changes in 1 version. Below, its one version 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.
pgrx-macros 0.20.0 breaking changes
- Removed
Remove the pg13 and pg14 features, code gated on them, and their CI jobs. If default names one of them, change it to a supported version. github.com - Removed
pgrx no longer builds with Rust 1.96 and Cargo refuses older toolchains. Update any pinned toolchain or CI job to 1.99.1 or newer. github.com - Removed
check_for_interrupts!
Use the safe pgrx::check_for_interrupts function instead. github.com - Removed
pg_sys.castNodeImpl
Only assert-enabled PostgreSQL declares it, so it is gone from every build. github.com - Removed
pg_sys.Debug_copy_parse_plan_trees
Only assert-enabled PostgreSQL declares it, so it is gone from every build. github.com - Removed
pg_sys.heap_tuple_get_struct
The Rust port is removed. Call the generated macro with the PostgreSQL name instead. github.com - Removed
pg_sys.MemoryContextCheck
Only assert-enabled PostgreSQL declares it, so it is gone from every build. github.com - Removed
PgRelation
Use oid() instead of rd_id, tuple_desc() instead of rd_att, and as_ptr for other fields. github.com - Removed
pgrx.srf_*
The srf helper functions are removed. Call the generated PostgreSQL macros instead. github.com - Removed
pgrx.varsize_any
Call the generated VARSIZE_ANY macro instead and wrap it in unsafe where needed. github.com - Removed
PgTupleDesc
Use as_ptr, len, oid, typmod or refcount instead of a reference to the header. github.com - Behavior changed
Check extension_sql blocks that name objects from elsewhere and list those objects in requires. github.com - Behavior changed
AnyArray.value
Elements of 1, 2 or 4 bytes now get sign-extended Datums. Code that masks the raw Datum should keep its low 32 bits. github.com - Behavior changed
Array
Reading text or varchar elements as &str or String checks their encoding and panics on invalid input. github.com - Behavior changed
Array.get
Each element read is a new copy, so writing through a box no longer changes the array. github.com - Behavior changed
Internal.initialized
A null pointer that is not SQL NULL now reads as not initialized. get_or_insert now allocates a new value. github.com - Behavior changed
pg_sys.MemoryContextSwitchTo
It now runs through the generated or guarded C binding instead of a Rust port. github.com - Behavior changed
PgBox
Element types that are variable-length or pass by value now panic when read as PgBox<T>. github.com - Behavior changed
PgHeapTuple.set_by_index
It now returns NoSuchAttributeNumber for a dropped attribute instead of raising an ERROR. github.com - Behavior changed
pgrx.fn_call.fn_call
Mismatched argument types now return IncompatibleArgumentType instead of calling the function unchecked. github.com - Behavior changed
pgrx.wrappers.rust_regtypein
Types are found only among the extension's own types. Other extensions' types need regtypein with a schema-qualified name. github.com - Behavior changed
PgVarlena.into_pg
Results used to keep a four-byte header. C code must use VARSIZE_ANY and VARDATA_ANY or detoast first. github.com - Configuration changed
Builds need a clang driver from the same LLVM release as libclang. Clang drivers that load a default configuration file are refused unless CLANG_NO_DEFAULT_CONFIG=1 is set. github.com - Configuration changed
Cross builds need PostgreSQL headers configured for the target, selected with the documented PGRX_ variables. github.com - Configuration changed
Entries for PostgreSQL 13 and 14 in cargo pgrx init configuration are ignored. Those installations stay on disk. github.com - Signature changed
AnyArray.into
It reads any type without checking. Call AnyArray::value for a checked read. github.com - Signature changed
Array.into_iter
Parts with lifetimes borrow the Array, so read it with iter and use each part while it is alive. github.com - Signature changed
pg_sys.VARHDRSZ
Code that relies on the usize type of VARHDRSZ must convert it. github.com - Signature changed
PgHeapTuple.attributes
It now returns FormData_pg_attribute by value. Code that iterates with a pattern may need changes. github.com - Signature changed
PgHeapTuple.get_attribute_by_index
It now returns FormData_pg_attribute by value instead of a reference. github.com - Signature changed
PgHeapTuple.get_attribute_by_name
It now returns FormData_pg_attribute by value instead of a reference. 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. github.com - Signature changed
pgrx.htup.composite_row_type_make_tuple
Callers must now wrap the call in unsafe and pass a live composite Datum. github.com - Signature changed
pgrx.htup.DatumWithTypeInfo.into_value
Callers must wrap the call in unsafe and pass a NULL or a value of a matching type. github.com - Signature changed
pgrx.htup.heap_getattr
Callers must wrap the call in unsafe and pass a live tuple matching the descriptor. github.com - Signature changed
pgrx.htup.heap_getattr_datum_ex
Callers must wrap the call in unsafe and pass a live tuple matching the descriptor. github.com - Signature changed
PgTupleDesc.get
It now returns FormData_pg_attribute by value instead of a reference, so bindings and patterns change. github.com - Signature changed
PgTupleDesc.iter
It now yields FormData_pg_attribute values instead of references. Drop any & or * patterns. github.com - Signature changed
PgVarlena.new
It starts from T::default() instead of zero bytes. Use new_zeroed where all-zero bytes are valid. github.com - Signature changed
point_recv
Direct Rust calls must now be wrapped in unsafe and pass a valid StringInfoData. github.com
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.