Skip to content

build(deps): Bump pgrx-tests from 0.16.1 to 0.18.0#168

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

build(deps): Bump pgrx-tests from 0.16.1 to 0.18.0#168
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/pgrx-tests-0.18.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 21, 2026

Bumps pgrx-tests from 0.16.1 to 0.18.0.

Release notes

Sourced from pgrx-tests's releases.

v0.18.0

pgrx v0.18.0

Welcome to pgrx v0.18.0! We cut the build in half.

Schema generation no longer needs a second compilation pass. Your extension compiles once, cargo-pgrx reads SQL metadata straight out of the shared library, and that's it. No more pgrx_embed binary. No more [[bin]] target. No more waiting to compile everything twice.

v0.18.0 also ships in-process benchmarking, a stack of improvements that make pgrx much friendlier to AI coding agents, Rust backtraces for Postgres errors, lazy log allocation, and a handful of quality-of-life fixes that add up to a noticeably better development experience.

Install with:

$ cargo install cargo-pgrx --version 0.18.0 --locked

And make sure to update your crate dependencies to pgrx = "=0.18.0"


One Compilation Pass

#2264 by @​eeeebbbbrrrr

This is the big one.

cargo pgrx schema used to compile your extension, then compile and run a separate pgrx_embed helper binary to extract SQL metadata.

Now it compiles your extension once. The SQL entity metadata is embedded directly into the shared library during the normal build, and cargo-pgrx reads it back out of the .pgrx linker section afterward.

What that means in practice:

  • Faster builds. The second compilation pass is gone. If your extension actually takes 45 seconds to build, you were spending ~90 seconds on every cargo pgrx test or cargo pgrx schema. Not anymore.
  • Simpler boilerplate. New extensions are just cdylib crates. No src/bin/pgrx_embed.rs. No [[bin]] target. No crate-type = ["lib", "cdylib"]. Just crate-type = ["cdylib"] and your extension code.
  • Stricter type resolution. The SQL entity graph now resolves types by TYPE_IDENT (a qualified Rust-side identity using module_path!()) instead of the old loosely-inferred SCHEMA_KEY. Two types with the same name in different modules no longer collide. Types that claim to be extension-owned must actually resolve to a producer in the graph, or schema generation fails. No more silent guessing.

Additionally, the pgrx repo itself is now a proper Cargo workspace with cargo-pgrx, all the core crates, examples, and a dedicated pgrx-unit-tests extension crate. CI exercises the in-tree cargo-pgrx when running tests.

See the v18.0 Migration Guide for the full details and worked examples.

Breaking Changes From One-Compile

Manual SqlTranslatable implementations must move from methods to associated consts:

... (truncated)

Commits
  • 0486b47 Update version to 0.18.0 (#2276)
  • ad211d0 Make cargo pgrx regress \<testname> use the default pg version (#2278)
  • af589dd cargo fmt
  • 265eb38 fix this installation regression test for Windows
  • 9761723 fix clippy complaint
  • abe67d1 cargo fmt
  • 5998a61 fix(schema): ignore mid-stream sentinel entries during test installs
  • e2723fd Fix release-mode cshim wrapper collisions
  • 59c7be9 cargo pgrx run foo treats non-pgXX first arg as dbname (#2275)
  • d9aa250 cargo pgrx test foo treats non-pgXX first arg as testname filter (#2274)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Apr 21, 2026
Bumps [pgrx-tests](https://github.com/pgcentralfoundation/pgrx) from 0.16.1 to 0.18.0.
- [Release notes](https://github.com/pgcentralfoundation/pgrx/releases)
- [Commits](pgcentralfoundation/pgrx@v0.16.1...v0.18.0)

---
updated-dependencies:
- dependency-name: pgrx-tests
  dependency-version: 0.18.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/cargo/pgrx-tests-0.18.0 branch from 3b8509a to d07905f Compare April 30, 2026 20:24
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