Major PostgreSQL upgrades (e.g., 14→18) require a full dump and restore — the data files are not compatible across major versions.
Note: Immich requires vector extensions, and they supply an image with them bundled in as
ghcr.io/immich-app/postgres:18-vectorchord0.5.3-pgvector0.8.1
- Dump:
docker exec -t <container> pg_dumpall --clean --if-exists --username=<user> | gzip > dump.sql.gz - Stop the stack:
docker compose down

