Skip to content

chore(docker): pin pg_textsearch to v1.3.1#50

Merged
mudler merged 1 commit into
mainfrom
chore/pin-pg-textsearch
Jun 26, 2026
Merged

chore(docker): pin pg_textsearch to v1.3.1#50
mudler merged 1 commit into
mainfrom
chore/pin-pg-textsearch

Conversation

@localai-bot

Copy link
Copy Markdown
Collaborator

The PostgreSQL image built pg_textsearch from the moving main branch, producing an unreproducible 1.0.0-dev. That dev build's bm25 access method could wedge an INSERT on a buffer-content LWLock indefinitely — uninterruptible (pg_terminate_backend had no effect; only a Postgres restart cleared it) — holding the relation lock and stalling every other operation on the collection (observed in production: a 4-day-wedged INSERT with 75 CREATE INDEX queued behind it). This is the root tooling risk behind #49.

Pin to the latest tagged release v1.3.1 (same 1.x major as what was deployed, so LocalRecall's to_bm25query / text_config SQL stays compatible) via a shallow tag clone, and expose PG_TEXTSEARCH_VERSION as a build arg for deliberate future bumps.

Verified --branch v1.3.1 resolves to the tag and the tree still has the Makefile (make && make install unchanged). No image build run here (long Rust/pgvectorscale compile); the clone step is the only change.

Assisted-by: Claude:claude-opus-4-8 [Claude Code]

The image built pg_textsearch from the moving main branch, shipping an
unreproducible "1.0.0-dev". That dev build's bm25 access method could wedge
an INSERT on a buffer-content lock indefinitely (uninterruptible — only a
Postgres restart cleared it), holding the relation lock and stalling every
other operation on the collection.

Pin to the latest tagged release (v1.3.1, same 1.x major as what was
deployed, so the bm25 SQL stays compatible) via a shallow tag clone, and
expose PG_TEXTSEARCH_VERSION as a build arg for deliberate future bumps.

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
Assisted-by: Claude:claude-opus-4-8 [Claude Code]
@mudler mudler merged commit d5f4a99 into main Jun 26, 2026
6 checks passed
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