pgvector.git / summary / log / commit / refs

commit    335dd317cf685705cf82f2074c53d4d41c181cae
Author:   Andrew Kane <andrew@ankane.org>
Date:     Wed Jul 29 00:12:03 2026 +0000

    Improved IvfflatCheckMemoryUsage [skip ci]


src/ivfutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ivfutils.c b/src/ivfutils.c index 534cb24e..4a3ce194 100644 --- a/src/ivfutils.c +++ b/src/ivfutils.c @@ -121,7 +121,7 @@ void IvfflatCheckMemoryUsage(Size totalSize) { /* Add one to error message to ceil */ - if (totalSize > maintenance_work_mem * (Size) 1024) + if (totalSize / 1024 > maintenance_work_mem) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), errmsg("memory required is %zu MB, maintenance_work_mem is %d MB", [parent: c13e4fc29925]