ImmichI
Immichβ€’7mo ago
ysmfwns3

Move to new database vector extension

Hi there πŸ™‚
I've been struggling to understand how to migrate to the new database vector extension as I don't have a super standard setup πŸ˜‰

Could one of you help me with this migration process?

Setup:
  • OS:
TrueNAS Scale (23.10.2)
  • Deployment:
Integrated Kubernetes (k3s)
  • Configuration:
https://github.com/v3DJG6GL/truecharts_archive/blob/main/stable/immich/15.18.3/ix_values.yaml
  • DB:
CNPG

This is the .yaml part that configures the CNPG currently:
cnpg:
  main:
    enabled: true
    user: immich
    database: immich
    type: vectors
    cluster:
      initdb:
        postInitApplicationSQL:
        - CREATE EXTENSION IF NOT EXISTS cube;
        - CREATE EXTENSION IF NOT EXISTS earthdistance;
        - CREATE SCHEMA IF NOT EXISTS vectors;
        - ALTER DATABASE immich SET search_path TO "immich", public, vectors;
        - SET search_path TO "immich", public, vectors;
        - GRANT SELECT ON TABLE pg_vector_index_stat TO PUBLIC;
        - ALTER SCHEMA vectors OWNER TO immich;

Note: I am the maintainer this repository because the initial maintainers dropped support for TrueNAS SCALE a year ago.
Was this page helpful?