Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
ImmichI
Immichβ€’9mo agoβ€’
20 replies
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;
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.
ImmichJoin
A place to hang out, get support, discuss Immich, get announcements about releases and anything else going on.
36,590Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

No vector extension found
ImmichIImmich / help-desk-support
6mo ago
Move Database on Proxmox
ImmichIImmich / help-desk-support
9mo ago
Move upload folder to new immich instance
ImmichIImmich / help-desk-support
2mo ago
New immich, old database?
ImmichIImmich / help-desk-support
2mo ago