pgvector.git / summary / log / commit / refs
commit bab5fea9e780c7ec73dd0e23f8fcaab0f2ecf989
Author: Andrew Kane <andrew@ankane.org>
Date: Sun Sep 03 19:32:59 2023 +0000
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 a1daff00..d6383f46 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;
[parent: b1f951968938]