From bab5fea9e780c7ec73dd0e23f8fcaab0f2ecf989 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sun, 3 Sep 2023 12:32:59 -0700 Subject: [PATCH] Improved variable name [skip ci] --- src/ivfflat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ivfflat.c b/src/ivfflat.c index a1daff0..d6383f4 100644 --- a/src/ivfflat.c +++ b/src/ivfflat.c @@ -71,7 +71,7 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, int lists; double ratio; double spc_seq_page_cost; - Relation indexRel; + Relation index; #if PG_VERSION_NUM < 120000 List *qinfos; #endif @@ -89,9 +89,9 @@ ivfflatcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, MemSet(&costs, 0, sizeof(costs)); - indexRel = index_open(path->indexinfo->indexoid, NoLock); - IvfflatGetMetaPageInfo(indexRel, &lists, NULL); - index_close(indexRel, NoLock); + index = index_open(path->indexinfo->indexoid, NoLock); + IvfflatGetMetaPageInfo(index, &lists, NULL); + index_close(index, NoLock); /* Get the ratio of lists that we need to visit */ ratio = ((double) ivfflat_probes) / lists;