mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-09 14:20:57 +08:00
DRY HNSW procinfo
This commit is contained in:
@@ -86,9 +86,7 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
|
||||
ALLOCSET_DEFAULT_SIZES);
|
||||
|
||||
/* Set support functions */
|
||||
so->procinfo = index_getprocinfo(index, 1, HNSW_DISTANCE_PROC);
|
||||
so->normprocinfo = HnswOptionalProcInfo(index, HNSW_NORM_PROC);
|
||||
so->collation = index->rd_indcollation[0];
|
||||
HnswSetProcinfo(index, &so->procinfo, &so->normprocinfo, &so->collation);
|
||||
|
||||
scan->opaque = so;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user