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

# pgrx-pg-config breaking changes

pgrx-pg-config 0.20.0 (November 12, 2026) is its newest release with breaking changes, 37 of them. The first: pgrx-pg-config 0.20.0 requires Rust 1.99.1 or later. Every breaking API change we have recorded in pgrx-pg-config on crates.io: 51 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): 38 breaking changes in 2 versions.

## pgrx-pg-config 0.20.0 breaking changes

pgrx-pg-config 0.20.0, released November 12, 2026: 37 breaking changes.

- **Removed**  

Rust 1.96 is no longer supported and Rust 1.99.0 is excluded. Update the toolchain and any rust-toolchain.toml or CI pin. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed**  

The pg13 and pg14 features are removed. Remove them from Cargo.toml, remove code gated on them, and drop their CI jobs. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `check_for_interrupts!`  

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

This binding existed only on assert-enabled PostgreSQL builds and is now 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`  

It is no longer a Rust port. 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`  

This binding existed only on assert-enabled PostgreSQL builds and is now 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 and tuple_desc() instead of rd_att, and read other fields through as_ptr. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Removed** `pgrx_pg_config::cargo::PgrxManifestExt`  

pgrx_pg_config::cargo::PgrxManifestExt was removed in pgrx-pg-config 0.20.0 [crates.io](https://crates.io/crates/pgrx-pg-config/0.20.0)
- **Removed** `pgrx_pg_config::cargo::read_manifest`  

pgrx_pg_config::cargo::read_manifest was removed in pgrx-pg-config 0.20.0 [crates.io](https://crates.io/crates/pgrx-pg-config/0.20.0)
- **Removed** `pgrx.varsize_any`  

Call the generated VARSIZE_ANY! macro in unsafe code and extract the result with get(). [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 reading fields through a reference. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Cross-compiling needs headers configured for the target, selected through the documented environment variables. [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 as an Array and use parts while it is alive. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Non-UTF-8 text or varchar elements now panic, and in non-UTF-8 databases any non-ASCII element panics. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed**  

Statements are ordered by declared dependencies, so extension_sql blocks that name external objects must list them in requires. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `Array.get`  

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

Arguments that need a cast now return IncompatibleArgumentType instead of being passed unchecked. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `IntoDatum`  

The Datum now matches Float4GetDatum and CharGetDatum, which changes raw Datum values code may inspect. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Behavior changed** `pgrx.fn_call.fn_call`  

Arguments whose types do not match a parameter 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 looked up in the extension rather than search_path, and types of other extensions need their own type_oid. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Configuration changed**  

pg-sys generates C macros on every build, so builds need a clang driver matching libclang and the matching llvm-ar. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Configuration changed**  

Gentoo-style 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)
- **Signature changed**  

The pgrx-pg-config crate's API changed in this release. Code that calls it directly must be updated to the new API described in the 0.20.0 migration guide. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0)
- **Signature changed** `<type>_recv`  

Rust callers must wrap direct calls in unsafe and pass a valid StringInfoData. SQL and COPY usage is unchanged. [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) in unsafe code, or use the new checked value method. [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** `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 and panics when the namespace does not exist. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx_pg_config::PgConfig::url`  

Was fn url(&self) -> Option<&Url>; now fn url(&self) -> Option<&str>. [crates.io](https://crates.io/crates/pgrx-pg-config/0.20.0)
- **Signature changed** `pgrx_pg_config::PgVersion::new`  

Implement Default for the type, or use the unsafe new_zeroed where all-zero bytes are a valid value. [crates.io](https://crates.io/crates/pgrx-pg-config/0.20.0)
- **Signature changed** `pgrx_pg_config::PgVersion::url`  

Was url: Option\<Url>; now url: Option\<String>. [crates.io](https://crates.io/crates/pgrx-pg-config/0.20.0)
- **Signature changed** `pgrx.htup.composite_row_type_make_tuple`  

Callers must wrap calls 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 calls in unsafe and pass a NULL or a value of typoid that T can read. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)
- **Signature changed** `pgrx.htup.heap_getattr`  

Callers must wrap calls 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 calls in unsafe and meet the documented Safety requirements. [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 code binding references must 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 by value instead of a reference. Patterns on the old reference types must drop the & or \*. [github.com](https://github.com/pgcentralfoundation/pgrx/blob/develop/v0.20.0-MIGRATION.md)

## pgrx-pg-config 0.20.0-beta.1 breaking changes

pgrx-pg-config 0.20.0-beta.1, released November 12, 2026: 1 breaking change.

- **Signature changed**  

The release changes the pgrx-pg-config API. Code that calls it directly must be updated following the v0.20.0 migration guide. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.1)

## pgrx-pg-config 0.20.0-beta.0 breaking changes

pgrx-pg-config 0.20.0-beta.0, released November 12, 2026: 13 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 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 port is gone; the migration guide lists replacements for each removed helper. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `pgrx.srf_*`  

The hand-written SRF helpers are gone; see the C macro guide for replacements. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Removed** `pgrx.varsize_any`  

Use 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**  

Other files such as post_setup.sql now run as ordinary tests instead of setup scripts. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

Existing \[package.metadata.deb\] sections use different keys and can make cargo pgrx package fail; update them. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

If an extension_sql! block names an object from elsewhere, list it in requires or CREATE EXTENSION can fail. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)
- **Behavior changed**  

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

Builds need Rust 1.99.1; avoid Rust 1.99.0, which can miscompile some extern C functions returning bool. [github.com](https://github.com/pgcentralfoundation/pgrx/releases/tag/v0.20.0-beta.0)

And 3 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](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)

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