Skip to content

Prepare PostgreSQL 18 and pgvector defaults for OpenProject 18 - #167

Draft
crohr wants to merge 2 commits into
stable/17from
auto/postgresql-18
Draft

crohr wants to merge 2 commits into
stable/17from
auto/postgresql-18

Conversation

@crohr

@crohr crohr commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

PostgreSQL 18 rollout

Hold for OpenProject 18.0. Do not merge this into the active stable/17 release. There is no stable/18 branch yet; this draft uses stable/17 as its review base and must be retargeted to stable/18 before merge.

Use a SQL initialization file handled directly by the PostgreSQL entrypoint. Keep the complete migration procedure in the linked guide.

Default new databases to pgvector/pgvector:pg18-bookworm, mount persistent storage at /var/lib/postgresql, and activate vector in newly initialized application databases. Preserve the host-side PGDATA setting. Document the explicit PostgreSQL 17 image/mount override, major-version migration, and rollback. Existing database files are never upgraded automatically.

The app and hocuspocus release tags remain unchanged here; their normal 18.0 release update is separate from this PostgreSQL change. Helm replacement is also separate.

Validation

  • Built the actual OpenProject 18 slim image on Linux ARM64 with BIM_SUPPORT=false.
  • Installed released OpenProject 17.9.7 on PostgreSQL 17.11, populated a project/work package/attachment, stopped writers, and took a real database dump.
  • Restored that dump into this Compose PostgreSQL 18 service. Ran OpenProject 18 migrations/seeding and started the locally built slim web/worker services with a localhost port override.
  • Verified HTTP health, login HTML, authenticated work-package API access, attachment download SHA-256, preserved fulltext, and new attachment-extraction worker processing.
  • Repeated HTTP and attachment-checksum checks after restarting the database, web, and worker.
  • Verified fresh vector activation, vector queries, named-volume and bind-mount persistence across container recreation, and the documented PostgreSQL 17 image/mount override.
  • SQL initialization passed real PostgreSQL 18 tests with a custom database/user, a vector-distance query, persistence after container recreation, and no activation on an existing cluster.
  • Compose rendering, diff checks, and final adversarial review passed.

The application validation bypassed the proxy using a localhost-only web port. AMD64/BIM, ingress/TLS, and the full release matrix were not exercised locally.

Companion application change: opf/openproject#26780

@oliverguenther oliverguenther left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The changes themselves look good to me. We want this into stable/18 for the next major release, not in stable/17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants