Skip to content

feat: add :19 on PostgreSQL 19 with VectorChord 1.5.0 - #5

Draft
Phlogi wants to merge 1 commit into
daemonless:mainfrom
Phlogi:feat/pg19-vectorchord-1.5.0
Draft

Phlogi wants to merge 1 commit into
daemonless:mainfrom
Phlogi:feat/pg19-vectorchord-1.5.0

Conversation

@Phlogi

@Phlogi Phlogi commented Nov 25, 2026

Copy link
Copy Markdown

Adds :19 / 19-pkg on PostgreSQL 19. Depends on daemonless/postgres#3.

tensorchord/VectorChord is unmaintained and has no PG 19 build (pinned to
pgrx 0.17, no pg19 feature). Development moved to pgsty/vchord, a
drop-in fork; 1.5.0 supports PG 15-19 (pgrx 0.20.1) and keeps the on-disk
index format, so upgrades only need ALTER EXTENSION vchord UPDATE.
It dropped PG 14, so :14/:latest stay on tensorchord 0.5.3 and :18
keeps using the postgresql18-vchord package.

Changes:

  • new 19-pkg variant: VECTORCHORD_VERSION=1.5.0, VECTORCHORD_REPO=pgsty/vchord
  • Containerfile.j2: add VECTORCHORD_REPO (default unchanged) and source-build
    when a version is pinned, instead of silently using an older packaged vchord
  • pgvector 0.8.7 comes from the :19 base image (no change here)
  • README/Containerfile regenerated with pinned dbuild

Verify: base image :19 exists; amd64+aarch64 build; vchord 1.5.0 /
vector 0.8.7; :14 and :18 regression builds; Immich starts (accepts
vchord <2.0).

Risk: pgsty/vchord CI is Linux-only; pgrx 0.20.1 + Rust >=1.100 on FreeBSD is
unproven. If it fails, update databases/vchord in ports to pgsty 1.5.0 first.

Add a 19-pkg variant (alias :19) that builds on ghcr.io/daemonless/postgres:19.
VectorChord is built from pgsty/vchord 1.5.0, the maintained successor of
tensorchord/VectorChord, which supports PostgreSQL 15-19 (pgrx 0.20.1). The
tensorchord repo is unmaintained and has no pg19 build; pgsty 1.5.0 dropped
PG 14, so :14/:latest stay on tensorchord 0.5.3 and :18 keeps using the
FreeBSD postgresql18-vchord package.

The builder now supports VECTORCHORD_REPO and honours an explicit
VECTORCHORD_VERSION even when a FreeBSD package exists, so :19 does not
silently fall back to an older packaged vchord. pgvector 0.8.7 comes from
the :19 base image, which compiles it from the ports tree.

Also regenerated Containerfile/README with the pinned dbuild.
@Phlogi

Phlogi commented Nov 25, 2026

Copy link
Copy Markdown
Author

Fork verification against a real ghcr.io/phlogi/postgres:19 base: the 19-pkg build fails in the VectorChord source build:

error: rustc 1.99.1 is not supported by the following package:
  xtask@1.5.0 requires rustc 1.100.0
gmake: *** [Makefile:11: build] Error 101

FreeBSD lang/rust is 1.99.1 (both ports and pkg), while pgsty/vchord 1.4.0+ sets rust-version = "1.100.0". vchord 1.3.0 builds with 1.99, but its release notes say PG 19 is "development validation only", so it is not a safe drop-in for Immich.

Marking as draft: blocked on lang/rust >= 1.100. No change needed here -- the :19 base image and pgvector 0.8.7 already build fine; once rust is bumped this variant should compile.

@Phlogi
Phlogi marked this pull request as draft November 25, 2026 19:35
@ahze

ahze commented Nov 25, 2026

Copy link
Copy Markdown
Member

Thanks for the PR and for catching the Rust MSRV issue.

Looks like lang/rust 1.100.0 is already moving upstream (FreeBSD Bug 300939 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300939, exp-run requested today), so holding this as a draft until it hits the pkg mirror sounds like the right call.

@ahze ahze self-assigned this Nov 26, 2026
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.

2 participants