Skip to content

deps(deps): update pgrx requirement from 0.19 to 0.20 - #14

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/main/pgrx-0.20
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/main/pgrx-0.20

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown

Updates the requirements on pgrx to permit the latest version.

Release notes

Sourced from pgrx's releases.

v0.20.0

Welcome to pgrx v0.20.0. This is a big one, and it's the first production release of the 0.20 series.

pgrx now generates Rust versions of Postgres' C macros and static inline functions during every build, and the hand-written ports are gone. We also fixed a long list of safe APIs that could cause undefined behavior, picked up the CVE-2026-6460 fix from Postgres' November minor releases, dropped Postgres 13 and 14, moved to Postgres 19rc2, and now require Rust 1.99.1. cargo-pgrx can assemble upgrade scripts from SQL fragments and build RPM and DEB packages, and pgrx gained tsvector and tsquery types.

Many of these changes will break existing code, some of them in behavior rather than at compile time. Please read the v0.20.0 Migration Guide before upgrading.

Install with:

$ rustup update stable
$ cargo install cargo-pgrx --version 0.20.0 --locked

Then update your extension's dependencies with cargo pgrx upgrade, and run a plain cargo pgrx init, with no arguments. That downloads and builds the patched Postgres releases: 15.20, 16.16, 17.12, 18.7 and 19rc2.

Builds now need a clang whose major version matches libclang, and should have llvm-ar from the same LLVM release. On Debian-likes that's apt install clang llvm libclang-dev. See Build requirements.

Coming from a beta?

Since beta.1, a generated C macro whose result is a truth value returns a Rust bool, so drop .is_true() from calls like IsA!. PgSqlErrorCode is now #[non_exhaustive]. Composite datums are version-checked when built against the patched Postgres releases. And cargo pgrx init --pg19=download now gets 19rc2. Each is described below.

Thanks to everyone who tried the betas and told us what broke.


Generated C Macros and Static Inline Functions

This is the headline item, and it arrived on develop through pgcentralfoundation/pgrx#2405.

pgrx has always carried hand-written Rust ports of the Postgres macros and static inline functions it needed. They covered a small part of the headers, and they drifted from the C as Postgres changed from version to version.

The new pgrx-c-macros crate runs during every pgrx-pg-sys build and translates Postgres' function-like C macros into documented Rust macro_rules!. The translations keep C's arithmetic, integer promotions, casts and evaluation order, so they compute what the C computes for the headers you build against. You call them by their Postgres names:

// Before (v0.19)
let len = pgrx::varsize_any(ptr);
check_for_interrupts!();
// After (v0.20)
let len = unsafe { pgrx::VARSIZE_ANY!(ptr).get() as usize };
pgrx::check_for_interrupts();

... (truncated)

Commits
  • 3e6d5de Update version to 0.20.0 (#2505)
  • c7c1e70 Bump PostgreSQL 19 support to rc2 (#2501)
  • 47030f5 Accept the composite datum versioning gates in macro_availability (#2502)
  • 3ce5366 Add missing SQLSTATEs to PgSqlErrorCode and make it #[non_exhaustive] (#2...
  • 33ca1d8 Check composite datum versions when reading attributes (CVE-2026-6460) (#2498)
  • 4db0523 Restore a latest minor version that postgresql.org listed without its trailin...
  • 4c4cd29 Allocate memory-context callbacks before leaking Rust values (#2496)
  • f84b57a Strengthen migration fragment checks across sql/ and release branches. (#2495)
  • edf43ae Expose the installed extension version at compile time (#2493)
  • 9847d78 Add the no_thread_check_in_release feature and `pgrx::assert_active_thread(...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [pgrx](https://github.com/pgcentralfoundation/pgrx) to permit the latest version.
- [Release notes](https://github.com/pgcentralfoundation/pgrx/releases)
- [Commits](pgcentralfoundation/pgrx@v0.19.0...v0.20.0)

---
updated-dependencies:
- dependency-name: pgrx
  dependency-version: 0.20.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 16, 2026
@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 12b45948-d148-4178-b5e2-a1f436002769

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants