Skip to content
This repository was archived by the owner on Apr 4, 2026. It is now read-only.

Add pgvector extension to all image variants#1

Merged
jensenbox merged 1 commit into
v2-multi-archfrom
add-pgvector
Apr 4, 2026
Merged

Add pgvector extension to all image variants#1
jensenbox merged 1 commit into
v2-multi-archfrom
add-pgvector

Conversation

@jensenbox

Copy link
Copy Markdown
Member

Summary

  • Build pgvector v0.8.0 from source in alpine and master Dockerfile templates
  • Install via apt package (postgresql-$PG_MAJOR-pgvector) in debian template
  • Add CREATE EXTENSION vector to regression checks in all templates
  • Regenerate all 15 Dockerfiles via apply-templates.sh

Context

The Closient database uses pgvector for embedding storage (search_search_embedding table). Without pgvector in the dev Docker image, dataset:restore silently skips the vector tables, causing missing functionality locally.

Test plan

  • Built 17-3.5-alpine locally — pgvector compiles and CREATE EXTENSION vector passes regression check
  • Local dataset:restore completes with zero pg_restore errors (previously had 10 errors)

Build pgvector v0.8.0 from source in alpine and master templates.
Install via apt package (postgresql-$PG_MAJOR-pgvector) in debian template.
Verify CREATE EXTENSION vector in regression checks.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6b6459c9d2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

&& make install \
\
# build pgvector
&& git clone --branch "v${PGVECTOR_VERSION}" --depth 1 https://github.com/pgvector/pgvector.git /usr/src/pgvector \

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin pgvector checkout to an immutable revision

The new git clone --branch "v${PGVECTOR_VERSION}" step fetches pgvector by a mutable tag name rather than an immutable commit, so a tag move or retag upstream can silently change what gets built for the same Dockerfile and produce non-reproducible (or unexpectedly broken) images. This is especially risky here because the template fans out to multiple published variants; prefer cloning a specific commit SHA (and optionally verifying it) to keep builds deterministic.

Useful? React with 👍 / 👎.

@jensenbox jensenbox merged commit b862a55 into v2-multi-arch Apr 4, 2026
30 of 32 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant