Upgrade pagila to current upstream with pgvector support - #11
Merged
Conversation
Pagila was pinned to a pre-2026-07 commit because upstream added a pgvector example (CREATE EXTENSION vector, film_embedding) that postgres:18-alpine cannot satisfy -- init aborted and the container never became ready. * Compile pgvector v0.8.6 in a dedicated build stage (OPTFLAGS= for cross-platform portability, with_llvm=no to skip bitcode) and copy only the .so + extension control/sql files into the final image. * Repoint pagila's extractUrl at pinned commit eddcfc4 (2026-08-06 upstream HEAD); still a pinned tarball, bumped deliberately. * Re-record expected counts (22 -> 71 tables: film_embedding, payment partitions through 2026-07, larger base tables) and extend the structure test with film_embedding and pgvector file assertions. Verified locally: dave build, structure-test (9/9), and dave test (71 tables with matching counts) all pass. Co-Authored-By: Claude Fable 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
Pagila was pinned to pre-2026-07 commit
e0e35a6because upstream added a pgvector example (CREATE EXTENSION vector,film_embedding) thatpostgres:18-alpinecannot satisfy — init aborted and the container never became ready. This upgrades pagila properly instead of staying pinned:pgvectorbuild stage onpostgres:18-alpine, pinned to release v0.8.6. Built withOPTFLAGS=(drops-march=nativefor the multi-platform build) andwith_llvm=no(skips JIT bitcode, so no clang/llvm build deps). The final image gains onlyvector.so+ the extension control/sql files, keeping size growth minimal. Note this ships pgvector in every postgres-dataset image, since the Dockerfile is shared and dataset-agnostic.extractUrl/sqlFilesrepointed at pinned commiteddcfc4513dab4239ee1acbdf52beb1f5fcf50ac(upstream HEAD as of 2026-08-06). Still a pinned tarball — not tracking HEAD — with the entry's comment updated to describe the deliberate-bump procedure.film_embeddingtable plus file-existence checks forvector.soandvector.control, so dropping pgvector from the image fails loudly at structure-test time.run.sh --update— 22 → 71 tables (film_embeddingat 1000 rows, payment partitions through 2026-07, and grown base tables:payment16049 → 51061,rental16044 → 51805,customer599 → 999).Test plan
Verified locally per repo convention:
dave build -c postgres -t pagilasucceedsdave structure-test -c postgres -t pagila— 9/9 passdave test -c postgres -t pagila— container boots (init runs the dump'sCREATE EXTENSION vectorcleanly, previously the aborting statement) and all 71 table counts match🤖 Generated with Claude Code