-
Notifications
You must be signed in to change notification settings - Fork 71
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
[Bug]: Index creation error: ambuildempty: not yet implemented
#190
Comments
is this an unlogged table? The docs say ambuildempty is
If it's not unlogged then it may be because of CONCURRENTLY, and we should take a look. |
@cevian Hello, thanks for your response. Yes, it is indeed an I'll try to recreate the index without the |
@cevian I created a fresh regular table (not temporary, not unlogged) and followed this by a regular index creation (not concurrent) on the L2 vector operations. The index took about 7h - 8h to create and is indicated as valid by PostgreSQL's There were two warnings but the index still seems correct (imo):
However, my queries don't seem to use the index both:
Query:
I Would you have any idea on why PostgreSQL wouldn't pick up on the index? |
@Mickael-van-der-Beek I believe the problem is you are using DESC in the ORDER BY clause. The index support ASC not DESC. Given that |
What happened?
About 11 hours after the beginning of the creation of the
diskann
index I see in the PostgreSQL logs the following error:ERROR: ambuildempty: not yet implemented
.The process ID logged with the error corresponds to the index creation process and the error seems to be thrown by the following line of code in
pgvectorscale
:pgvectorscale/pgvectorscale/src/access_method/build.rs
Line 244 in 39676ac
By querying the database, I verified that PostgreSQL indicates the index as being not valid:
Through a query on
pg_stat_activity
I can also confirm that the index creation query ended.My table setup:
mytable_embeddings
UNLOGGED
table containing about 21M rowsembedding
column of typeVECTOR(1024)
(BERT-type embedding output)ssd_02
, which is a dedicated tablespace and physical SSD for this test with 3.5 TB free space.My hardware setup is a bare metal server with the following config:
pgvectorscale extension affected
0.7.4
PostgreSQL version used
16.4
What operating system did you use?
Ubuntu 24.04 LTS on AMD x64
What installation method did you use?
Source
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
How can we reproduce the bug?
Are you going to work on the bugfix?
🆘 No, could someone else please work on the bugfix?
The text was updated successfully, but these errors were encountered: