Skip to content

fix(ops): backup verify uses pgvector image (restore failing 6 days)#350

Merged
mrviduus merged 1 commit into
mainfrom
fix-backup-verify-pgvector
Jun 17, 2026
Merged

fix(ops): backup verify uses pgvector image (restore failing 6 days)#350
mrviduus merged 1 commit into
mainfrom
fix-backup-verify-pgvector

Conversation

@mrviduus

Copy link
Copy Markdown
Owner

Backups have been red since 2026-06-12

The daily backup.yml workflow does: dump → verify (restore the dump into a throwaway Postgres + run sanity queries). The verify container was vanilla postgres:16. Since the pgvector work (Phase 4 embeddings, chapter_chunk vectors), the schema dump contains CREATE EXTENSION vector, which vanilla postgres:16 can't load:

ERROR:  extension "vector" is not available
DETAIL: Could not open extension control file ".../vector.control": No such file or directory.
[verify] FAIL: restore aborted on error

→ the verify gate failed every night for 6 days, marking the whole backup workflow failed.

Fix

infra/scripts/backup-verify.sh — the throwaway verify container now uses pgvector/pgvector:pg16 (the same image prod runs) instead of postgres:16, so the dump (with CREATE EXTENSION vector) restores cleanly. One-line image swap.

bash -n clean. After merge I'll trigger backup.yml via workflow_dispatch to confirm it goes green.

🤖 Generated with Claude Code

The daily backup workflow's verify step (restore the dump into a throwaway
Postgres + sanity-query it) spun up vanilla postgres:16. Since the
pgvector work (Phase 4 embeddings), the schema dump contains
'CREATE EXTENSION vector', which vanilla postgres:16 can't load:

  ERROR: extension "vector" is not available
  [verify] FAIL: restore aborted on error

→ the verify gate failed every night since 2026-06-12, marking the whole
backup workflow red. Fix: the throwaway verify container now uses
pgvector/pgvector:pg16 (the same image prod runs), so the dump restores.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mrviduus mrviduus merged commit db2b80a into main Jun 17, 2026
5 checks passed
@mrviduus mrviduus deleted the fix-backup-verify-pgvector branch June 17, 2026 15:25
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