mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Removed unnecessary cast [skip ci]
This commit is contained in:
@@ -208,8 +208,8 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers)
|
|||||||
if (totalSize / 1024 > maintenance_work_mem)
|
if (totalSize / 1024 > maintenance_work_mem)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),
|
||||||
errmsg("memory required is %zu MB, maintenance_work_mem is %zu MB",
|
errmsg("memory required is %zu MB, maintenance_work_mem is %d MB",
|
||||||
totalSize / (1024 * 1024) + 1, ((Size) maintenance_work_mem) / 1024)));
|
totalSize / (1024 * 1024) + 1, maintenance_work_mem / 1024)));
|
||||||
|
|
||||||
/* Set support functions */
|
/* Set support functions */
|
||||||
procinfo = index_getprocinfo(index, 1, IVFFLAT_KMEANS_DISTANCE_PROC);
|
procinfo = index_getprocinfo(index, 1, IVFFLAT_KMEANS_DISTANCE_PROC);
|
||||||
|
|||||||
Reference in New Issue
Block a user