From e45ae102046ab05107c9b70f3c290228557fad9e Mon Sep 17 00:00:00 2001 From: mr-forust Date: Tue, 29 Sep 2026 09:16:58 +0200 Subject: [PATCH] feat(immich): migrate postgres 14 to 16 with dump/restore Reverts the v16 revert: data migrated via pg_dumpall from PG14 into a fresh PG16 data directory (same extension versions vectorchord 0.4.3/pgvectors 0.2.0). Verified 1944 assets, 2 users, 10 albums on 16.10. Note: the restore OOMed once at the 2Gi limit during index builds and recovered via WAL replay; worth watching under PG16 load. --- immich/compose.yaml | 2 +- immich/k8s/postgres.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/immich/compose.yaml b/immich/compose.yaml index d03428d..2bc47ac 100644 --- a/immich/compose.yaml +++ b/immich/compose.yaml @@ -43,7 +43,7 @@ services: database: container_name: immich_postgres - image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 + image: ghcr.io/immich-app/postgres:16-vectorchord0.4.3-pgvectors0.2.0@sha256:1a078b237c1d9b420b0ee59147386b4aa60d3a07a8e6a402fc84a57e41b043a4 environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USERNAME} diff --git a/immich/k8s/postgres.yaml b/immich/k8s/postgres.yaml index f8a6024..fe8d603 100644 --- a/immich/k8s/postgres.yaml +++ b/immich/k8s/postgres.yaml @@ -50,7 +50,7 @@ spec: # that config_file, and it also loses the step where the entrypoint # drops from root to the postgres user: postmaster then starts as # root and refuses to run. - image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23 + image: ghcr.io/immich-app/postgres:16-vectorchord0.4.3-pgvectors0.2.0@sha256:1a078b237c1d9b420b0ee59147386b4aa60d3a07a8e6a402fc84a57e41b043a4 env: - name: POSTGRES_USER value: immich