From: ldhasson (@ldhasson) <noreply+ldhasson@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #569: Duplicate error when creating a vector index using HNSW
Date: Sat, 25 May 2024 12:42:57 +0000
Message-ID: <gh-pgvector-pgvector-569-c2131242658@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-569@github.com>
References: <gh-pgvector-pgvector-569@github.com>
Hello,
After further investigation, we found out that there may have been a previous index creation that failed but still left index artifacts around. There were two indices: "_idx" and "_idx1". I dropped them and rerun the index command and it worked that time.
I am not sure what could cause that. We initially had a column without a dimension, and creating the index failed. Then we changed the column and retried creating the index. I'll see if i can re-create that issue reliably, but it doesn't appear to be related to any duplicates in the data, but a duplicate index by name.
Thank you.