8000 Fixed list assignment for cosine distance and non-normalized vectors … · postgrespro/pgvector@7d2eb49 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7d2eb49

Browse files
committed
Fixed list assignment for cosine distance and non-normalized vectors for IVFFlat
1 parent 772ab69 commit 7d2eb49

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- Improved cost estimation
55
- Improved performance of HNSW inserts and on-disk index builds
66
- Reduced memory usage for HNSW index scans
7+
- Fixed list assignment for cosine distance and non-normalized vectors for IVFFlat
78
- Dropped support for Postgres 12
89

910
## 0.7.4 (2024-08-05)

src/ivfinsert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ InsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heap_tid, R
100100
IvfflatGetMetaPageInfo(index, NULL, NULL);
101101

102102
/* Find the insert page - sets the page and list info */
103-
FindInsertPage(index, values, &insertPage, &listInfo);
103+
FindInsertPage(index, &value, &insertPage, &listInfo);
104104
Assert(BlockNumberIsValid(insertPage));
105105
originalInsertPage = insertPage;
106106

0 commit comments

Comments
 (0)
0