feat(postgres): Upgrade pgrx to 0.16 with pg17/pg18 support#111
Open
dwillitzer wants to merge 1 commit intoruvnet:feat/ruvector-postgres-v2from
Open
feat(postgres): Upgrade pgrx to 0.16 with pg17/pg18 support#111dwillitzer wants to merge 1 commit intoruvnet:feat/ruvector-postgres-v2from
dwillitzer wants to merge 1 commit intoruvnet:feat/ruvector-postgres-v2from
Conversation
## Changes ### pgrx 0.16 Migration - Upgraded pgrx from 0.12 to 0.16 - Added pg18 feature flag for PostgreSQL 18 support - Updated all `extern "C"` to `extern "C-unwind"` for pg_guard functions - Converted GUC strings to C string literals (`c"..."`) ### Files Modified - Cargo.toml: pgrx 0.12 → 0.16, added pg18 feature - src/lib.rs: Updated _PG_init and GUC registrations - src/healing/worker.rs: extern "C-unwind" - src/index/bgworker.rs: extern "C-unwind" - src/types/vector.rs: extern "C-unwind" for type I/O - src/workers/engine.rs: extern "C-unwind" - src/workers/maintenance.rs: extern "C-unwind" ### Build Notes On macOS, build with: ```bash RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" \ cargo build --lib --no-default-features --features pg17 --release ``` Closes #XX Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
pgrx 0.16 Migration
extern "C"toextern "C-unwind"for pg_guard functions (43 functions across 9 files)c"...")None→&[])PostgreSQL Version Support
Build Notes
On macOS, build with:
RUSTFLAGS="-C link-arg=-undefined -C link-arg=dynamic_lookup" \ cargo build --lib --no-default-features --features pg17 --releaseTest plan
cargo check --features pg17passes🤖 Generated with Claude Code