Skip to content

Commit

Permalink
Change NOTICE to WARNING when HNSW graph does not fit in memory
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbautin committed Feb 11, 2025
1 parent 2fe560d commit f9a9e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hnswbuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ InsertTuple(Relation index, Datum *values, bool *isnull, ItemPointer heaptid, Hn

if (!graph->flushed)
{
ereport(NOTICE,
ereport(WARNING,
(errmsg("hnsw graph no longer fits into maintenance_work_mem after " INT64_FORMAT " tuples", (int64) graph->indtuples),
errdetail("Building will take significantly more time."),
errhint("Increase maintenance_work_mem to speed up builds.")));
Expand Down

0 comments on commit f9a9e66

Please sign in to comment.