pgvector.git / summary / log / commit / refs

commit    bbfe1e8b619e1ff0639d523b428f0b54203d2d64
Author:   Andrew Kane <andrew@ankane.org>
Date:     Thu Apr 11 21:05:41 2024 +0000

    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 a78dd39c..b6a95e53 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); [parent: 7e8be16e37e4]