feat(db): use pgautoupgrade image instead of pgvector + bespoke pg_upgrade

discourse core does not use the vector extension, so the pgvector image is
unnecessary. Switch db to pgautoupgrade/pgautoupgrade:17-trixie, which handles
major-version upgrades (old binaries, initdb, pg_upgrade) itself.

pgautoupgrade assumes the old cluster's install user (oid 10) equals
POSTGRES_USER and fails pg_upgrade otherwise (issue #115). A thin wrapper
entrypoint detects the old install user when an upgrade is pending and exports
POSTGRES_USER so pgautoupgrade matches it. Replaces the 64-line hand-rolled
pg_upgrade entrypoint.
This commit is contained in:
notplants
2026-06-18 22:12:57 +00:00
parent 0c4539b7ad
commit af76d06c2d
4 changed files with 44 additions and 73 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export DB_ENTRYPOINT_VERSION=v3
export DB_ENTRYPOINT_VERSION=v4
export PG_BACKUP_VERSION=v2
export APP_ENTRYPOINT_VERSION=v2
export APP_INSTALL_SSL_VERSION=v1