pgvector.git / summary / log / commit / refs

commit    13ecd271bab3acb6a65c824290ff413fd31e604c
Author:   Andrew Kane <andrew@ankane.org>
Date:     Sun Jul 16 06:06:34 2023 +0000

    Removed unneeded lists check [skip ci]


src/ivfbuild.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ivfbuild.c b/src/ivfbuild.c index 2cd4a201..222aa3fb 100644 --- a/src/ivfbuild.c +++ b/src/ivfbuild.c @@ -372,9 +372,7 @@ InitBuildState(IvfflatBuildState * buildstate, Relation heap, Relation index, In buildstate->collation = index->rd_indcollation[0]; /* Require more than one dimension for spherical k-means */ - /* Lists check for backwards compatibility */ - /* TODO Remove lists check in 0.3.0 */ - if (buildstate->kmeansnormprocinfo != NULL && buildstate->dimensions == 1 && buildstate->lists > 1) + if (buildstate->kmeansnormprocinfo != NULL && buildstate->dimensions == 1) elog(ERROR, "dimensions must be greater than one for this opclass"); /* Create tuple description for sorting */ [parent: fd3c3ce83dd6]