pgvector.git / summary / log / commit / refs

commit    41b766c24bf541b65d5377574cb2b1097eb587ae
Author:   Andrew Kane <andrew@ankane.org>
Date:     Sat Jun 10 02:55:49 2023 +0000

    Use index tuples


src/ivfflat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfflat.c b/src/ivfflat.c index 1a283b82..5c5ff07b 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -104,7 +104,7 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, * the generic cost estimator to determine the number of pages to visit * during the index scan. */ - costs.numIndexTuples = path->indexinfo->rel->tuples * ratio; + costs.numIndexTuples = path->indexinfo->tuples * ratio; #if PG_VERSION_NUM >= 120000 genericcostestimate(root, path, loop_count, &costs); [parent: d11fe7bbfbaf]