Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(server): support pgvecto.rs 0.3.0 #11624

Merged
merged 1 commit into from
Aug 7, 2024
Merged

chore(server): support pgvecto.rs 0.3.0 #11624

merged 1 commit into from
Aug 7, 2024

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Aug 6, 2024

Description

There were no visible issues when upgrading or creating a new instance with 0.3.0 during my testing. Smart search jobs, search, face detection, facial recognition, and changing search models all worked.

Upgrading just required a restart of the database. For non-superuser instances upgrading from 0.2.x to 0.3.0, I believe these two commands are all that's needed, followed by restarting the database:

ALTER EXTENSION vectors UPDATE;
SELECT pgvectors_upgrade();

I'm fine with bumping the default to 0.3.0, but can also wait a bit in case any issues pop up.

@mertalev mertalev merged commit 23d4314 into main Aug 7, 2024
21 of 22 checks passed
@mertalev mertalev deleted the chore/server-0.3.0 branch August 7, 2024 03:04
@jrasm91 jrasm91 added feature and removed feature labels Aug 13, 2024
@masterwishx
Copy link

Description

There were no visible issues when upgrading or creating a new instance with 0.3.0 during my testing. Smart search jobs, search, face detection, facial recognition, and changing search models all worked.

Upgrading just required a restart of the database. For non-superuser instances upgrading from 0.2.x to 0.3.0, I believe these two commands are all that's needed, followed by restarting the database:

ALTER EXTENSION vectors UPDATE;
SELECT pgvectors_upgrade();

I'm fine with bumping the default to 0.3.0, but can also wait a bit in case any issues pop up.

So we need only restart if using Docker image tensorchord/pgvecto-rs:pg16-v0.2.0?

@mertalev
Copy link
Contributor Author

Basically yes. Immich will handle the rest.

@masterwishx
Copy link

Basically yes. Immich will handle the rest.

Have error after updated :

image

@masterwishx
Copy link

Using ghcr.io/imagegenius/immich:latest image , working after SELECT pgvectors_upgrade(); and restart Postgres

@masterwishx
Copy link

or i was need to restart container only?

@jsimcina
Copy link

or i was need to restart container only?

I had to fully restart postgres (or if using cnpg, kubectl cnpg restart) then restart the container

@mertalev
Copy link
Contributor Author

or i was need to restart container only?

Immich already runs SELECT pgvectors_upgrade();, so restarting the container would have been enough. This is fine too, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants