Skip to content

feat: add VectorChord extension for PG17#10

Merged
h0lybyte merged 4 commits intodevelopfrom
feat/vectorchord
Feb 12, 2026
Merged

feat: add VectorChord extension for PG17#10
h0lybyte merged 4 commits intodevelopfrom
feat/vectorchord

Conversation

@h0lybyte
Copy link
Member

Summary

  • Add VectorChord (vchord) 1.1.0 extension for PG17 — scalable, disk-friendly vector similarity search
  • Bootstrap cargo-pgrx 0.17.0 with Rust 1.90.0 (new pgrx version required by VectorChord)
  • Improve tools/pgrx-hash/ utility: use nixos/nix base image with local volume output, fixing QEMU timeout on ARM hosts

Changes

File What
nix/ext/vectorchord.nix New extension derivation (pgrx 0.17.0, Rust 1.90.0)
nix/packages/postgres.nix Register vchord in dbExtensions17
nix/cargo-pgrx/versions.json Add pgrx 0.17.0 hashes
nix/cargo-pgrx/default.nix Add cargo-pgrx_0_17_0 attribute
nix/packages/default.nix Export cargo-pgrx_0_17_0
tools/pgrx-hash/* Fix: nixos/nix base, local volume output

Test plan

  • Nix eval: nix build --dry-run .#psql_17_slim/bin
  • Build extension: nix build .#psql_17.exts.vchord -L
  • Docker build PG17 image and verify CREATE EXTENSION vector; CREATE EXTENSION vchord;
  • CI pipeline passes

Dockerized utility (tools/pgrx-hash/) that computes Nix SRI hashes for
new cargo-pgrx versions. Uses linux/amd64 Docker container so ARM
machines can produce correct x86_64 hashes via QEMU.

Usage: ./tools/pgrx-hash/run.sh <pgrx-version> <rust-version>
Switch from mounting repo files directly to writing results to a local
output directory. Use nixos/nix base image with sandbox disabled instead
of runtime Nix install on Ubuntu, fixing QEMU timeout on ARM hosts.
Add VectorChord 1.1.0, a scalable disk-friendly vector search extension.
Requires pgrx 0.17.0 and Rust 1.90.0 — both bootstrapped via the
pgrx-hash tool and added to cargo-pgrx packages.
Load pgvector, kilobase, and vchord in CI health checks to verify
extensions are built correctly and can be created in PG17.
@h0lybyte h0lybyte merged commit e2e0f70 into develop Feb 12, 2026
1 check passed
@h0lybyte h0lybyte deleted the feat/vectorchord branch February 13, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant