Use index tuples

This commit is contained in:
Andrew Kane
2023-06-09 19:55:49 -07:00
parent d11fe7bbfb
commit 41b766c24b

View File

@@ -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);