From 41b766c24bf541b65d5377574cb2b1097eb587ae Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Fri, 9 Jun 2023 19:55:49 -0700 Subject: [PATCH] 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 1a283b8..5c5ff07 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);