Improved message [skip ci]

This commit is contained in:
Andrew Kane
2023-08-04 23:59:51 -07:00
parent 7c217bad0d
commit 405b7d98dc

View File

@@ -319,11 +319,10 @@ BuildCallback(Relation index, CALLBACK_ITEM_POINTER, Datum *values,
{ {
if (!buildstate->flushed) if (!buildstate->flushed)
{ {
/* TODO Improve message */
ereport(NOTICE, ereport(NOTICE,
(errmsg("hnsw graph no longer fits into maintenance_work_mem"), (errmsg("hnsw graph no longer fits into maintenance_work_mem after " INT64_FORMAT " tuples", (int64) buildstate->indtuples),
errdetail("Building will take significantly more time."), errdetail("Building will take significantly more time."),
errhint("Increase maintenance_work_mem to speed up future builds."))); errhint("Increase maintenance_work_mem to speed up builds.")));
FlushPages(buildstate); FlushPages(buildstate);
} }