Improved logging [skip ci]

This commit is contained in:
Andrew Kane
2024-09-21 23:20:23 -07:00
parent 64b0e6359b
commit ba0196ba10

View File

@@ -252,11 +252,11 @@ hnswgettuple(IndexScanDesc scan, ScanDirection dir)
HnswBench("scan iteration", so->w = ResumeScanItems(scan));
UnlockPage(scan->indexRelation, HNSW_SCAN_LOCK, ShareLock);
}
#if defined(HNSW_MEMORY)
elog(INFO, "memory: %zu KB", MemoryContextMemAllocated(so->tmpCtx, false) / 1024);
elog(INFO, "memory: %zu KB", MemoryContextMemAllocated(so->tmpCtx, false) / 1024);
#endif
}
if (list_length(so->w) == 0)
break;