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

# 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

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).

## pgrx-macros 0.20.0 breaking changes

pgrx-macros 0.20.0, released November 12, 2026: 41 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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](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** `pg_sys.castNodeImpl`  

Only assert-enabled PostgreSQL declares it, so it is gone from every build. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg_sys.Debug_copy_parse_plan_trees`  

Only assert-enabled PostgreSQL declares it, so it is 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 Rust port is removed. Call the generated macro with the PostgreSQL name instead. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pg_sys.MemoryContextCheck`  

Only assert-enabled PostgreSQL declares it, so it is 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 for other fields. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pgrx.srf_*`  

The srf helper functions are removed. Call the generated PostgreSQL macros instead. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pgrx.varsize_any`  

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

Use as_ptr, len, oid, typmod or refcount instead of a reference to the header. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Check extension_sql blocks that name objects from elsewhere and list those objects in requires. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `Array`  

Reading text or varchar elements as &str or String checks their encoding and panics on invalid input. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `Array.get`  

Each element read is a new copy, so writing through a box no longer changes the array. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `pg_sys.MemoryContextSwitchTo`  

It now runs through the generated or guarded C binding instead of a Rust port. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `PgBox`  

Element types that are variable-length or pass by value now panic when read as PgBox\<T>. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `PgHeapTuple.set_by_index`  

It now returns NoSuchAttributeNumber for a dropped attribute instead of raising an ERROR. [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 unchecked. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Configuration changed**  

Cross builds need PostgreSQL headers configured for the target, selected with the documented PGRX\_ variables. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Configuration changed**  

Entries for PostgreSQL 13 and 14 in cargo pgrx init configuration are ignored. Those installations stay on disk. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `AnyArray.into`  

It reads any type without checking. Call AnyArray::value for a checked read. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pg_sys.VARHDRSZ`  

Code that relies on the usize type of VARHDRSZ must convert it. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgHeapTuple.attributes`  

It now returns FormData_pg_attribute by value. Code that iterates with a pattern may need changes. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgHeapTuple.get_attribute_by_index`  

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

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

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

It now returns an owned String instead of &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 now wrap the call in unsafe and pass a live composite Datum. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx.htup.heap_getattr`  

Callers must wrap the call in unsafe and pass a live tuple matching the descriptor. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **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](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgTupleDesc.get`  

It now returns FormData_pg_attribute by value instead of a reference, so bindings and patterns change. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgTupleDesc.iter`  

It now yields FormData_pg_attribute values instead of references. Drop any & or \* patterns. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `PgVarlena.new`  

It starts from T::default() instead of zero bytes. Use new_zeroed where all-zero bytes are valid. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `point_recv`  

Direct Rust calls must now be wrapped in unsafe and pass a valid StringInfoData. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)

## Related packages

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