mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-14 16:46:54 +08:00
Fixed segmentation fault with index creation when lists > 6500 - fixes #42
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.3.1 (unreleased)
|
||||||
|
|
||||||
|
- Fixed segmentation fault with index creation when lists > 6500
|
||||||
|
|
||||||
## 0.3.0 (2022-10-15)
|
## 0.3.0 (2022-10-15)
|
||||||
|
|
||||||
- Added support for Postgres 15
|
- Added support for Postgres 15
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ InitCenters(Relation index, VectorArray samples, VectorArray centers, float *low
|
|||||||
FmgrInfo *procinfo;
|
FmgrInfo *procinfo;
|
||||||
Oid collation;
|
Oid collation;
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int64 j;
|
||||||
double distance;
|
double distance;
|
||||||
double sum;
|
double sum;
|
||||||
double choice;
|
double choice;
|
||||||
@@ -182,8 +182,8 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers)
|
|||||||
Vector *vec;
|
Vector *vec;
|
||||||
Vector *newCenter;
|
Vector *newCenter;
|
||||||
int iteration;
|
int iteration;
|
||||||
int j;
|
int64 j;
|
||||||
int k;
|
int64 k;
|
||||||
int dimensions = centers->dim;
|
int dimensions = centers->dim;
|
||||||
int numCenters = centers->maxlen;
|
int numCenters = centers->maxlen;
|
||||||
int numSamples = samples->length;
|
int numSamples = samples->length;
|
||||||
|
|||||||
Reference in New Issue
Block a user