We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent6a30c1e commitb163b5bCopy full SHA for b163b5b
src/hnswscan.c
@@ -128,6 +128,9 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
128
so= (HnswScanOpaque)palloc(sizeof(HnswScanOpaqueData));
129
so->typeInfo=HnswGetTypeInfo(index);
130
131
+/* Set support functions */
132
+HnswInitSupport(&so->support,index);
133
+
134
/*
135
* Use a lower max allocation size than default to allow scanning more
136
* tuples for iterative search before exceeding work_mem
@@ -136,9 +139,6 @@ hnswbeginscan(Relation index, int nkeys, int norderbys)
139
"Hnsw scan temporary context",
137
140
0,8*1024,512*1024);
138
141
-/* Set support functions */
-HnswInitSupport(&so->support,index);
-
142
/* Calculate max memory */
143
maxMemory= (double)work_mem*hnsw_scan_mem_multiplier*1024.0;
144
so->maxMemory=Min(maxMemory, (double)SIZE_MAX);