Add VectorChord extension, server defaults, and healthcheck #3
Loading…
Reference in a new issue
No description provided.
Delete branch "review-postgres-image-defaults-params"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds VectorChord 1.1.1 to the postgres image behind a new
POSTGRES_VECTORCHORDswitch, applies server defaults on every start, and ships a healthcheck script that fails on checksum errors.What changed
POSTGRES_VECTORCHORD_VERSION=1.1.1and installs thepostgresql-18-vchordpackage from the official VectorChord GitHub release. The release tag and asset URL are validated, and the SHA256 digest is taken from the release metadata and checked before install.POSTGRES_VECTORCHORDswitch. It enablesvector, preloadsvchord.so, and applies the Immich server profile (search_path,max_wal_size,shared_buffers,work_mem, autovacuum tuning).summarize_wal=onandwal_compression=on.DB_STORAGE_TYPEselects the SSD profile (default) orHDD.POSTGRES_INITDB_ARGSdefaults to--data-checksumswhen unset.POSTGRES_EXTRA_OPTSappends validatedname=valuesettings.hba_fileis rejected and always set last.DB_*variables fill the officialPOSTGRES_*names when those are empty.IGNORE_DATABASE_FSTYPE=true.vchordon first init when the switch is set, with the same guard.pg_isreadyand fails ifpg_stat_databasereports any checksum failures.Why
The Immich server needs VectorChord and its tuning profile. Checksums and the healthcheck make silent corruption visible. The storage and extra-options knobs let deployments tune without building a new image.