From bbfe1e8b619e1ff0639d523b428f0b54203d2d64 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 11 Apr 2024 14:05:41 -0700 Subject: [PATCH] Removed more vector-specific code from IVFFlat [skip ci] --- src/ivfbuild.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index a78dd39..b6a95e5 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -482,7 +482,7 @@ CreateListPages(Relation index, VectorArray centers, int dimensions, Size listSize; IvfflatList list; - listSize = MAXALIGN(IVFFLAT_LIST_SIZE(VECTOR_SIZE(dimensions))); + listSize = MAXALIGN(IVFFLAT_LIST_SIZE(centers->itemsize)); list = palloc0(listSize); buf = IvfflatNewBuffer(index, forkNum);