pgvector.git / summary / log / commit / refs

commit    7d2eb49c2a5ce3af51188af814a7b90132bd68f4
Author:   Andrew Kane <andrew@ankane.org>
Date:     Thu Oct 10 19:54:13 2024 +0000

    Fixed list assignment for cosine distance and non-normalized vectors for IVFFlat


CHANGELOG.md | 1 + src/ivfinsert.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7d99241..ab747967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Improved cost estimation - Improved performance of HNSW inserts and on-disk index builds - Reduced memory usage for HNSW index scans +- Fixed list assignment for cosine distance and non-normalized vectors for IVFFlat - Dropped support for Postgres 12 ## 0.7.4 (2024-08-05) diff --git a/src/ivfinsert.c b/src/ivfinsert.c index 57f839bd..f683ea7c 100644 --- a/src/ivfinsert.c +++ b/src/ivfinsert.c @@ -100,7 +100,7 @@ InsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid, R IvfflatGetMetaPageInfo(index, NULL, NULL); /* Find the insert page - sets the page and list info */ - FindInsertPage(index, values, &insertPage, &listInfo); + FindInsertPage(index, &value, &insertPage, &listInfo); Assert(BlockNumberIsValid(insertPage)); originalInsertPage = insertPage; [parent: 772ab69de6ea]