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
Create index failed (terminated by signal 9: Killed) #7
Comments
Hey @balazik, thanks for reporting! It looks like memory wasn't being freed correctly while the index was building. Can you see if the commit above fixes it? Edit to add more info: Memory for the process building the index should stay roughly below SELECT pg_backend_pid();
SHOW maintenance_work_mem;
SHOW shared_buffers; |
I deleted the VM machine where all tests were performed. Will recreate it and make new test, but it will take some time. |
No worries, I just pushed 0.1.5 with the fix, but let me know if you still run into issues. |
The new version works flawlessly! Test:
Mem: Thank you for the quick fix and also for the great extension. You can close the issue. |
Awesome, thanks for checking and sharing the results! |
Hi, this extension is exactly what I need for our nearest neighbor searches.
But it always fails when I try to create the index.
To reproduce:
exact query:
CREATE INDEX ON nlp.vector_test USING ivfflat (embedding vector_cosine_ops);
[08006] An I/O error occurred while sending to the backend.
Logs:
Details:
It seems that the index creation is eating all server memory (64GB). Then the system steps in (Ubuntu 20.04 LTS) and kills the process. I also tried to reduce the number of inverted lists to 10 but it doesn't help.
Do i need some partitioning or is this a bug ?
The text was updated successfully, but these errors were encountered: