From ba0196ba10c74ed67363467e03350ef00e4dfb92 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Sat, 21 Sep 2024 23:20:23 -0700 Subject: [PATCH] Improved logging [skip ci] --- src/hnswscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hnswscan.c b/src/hnswscan.c index dd56c3f..926e872 100644 --- a/src/hnswscan.c +++ b/src/hnswscan.c @@ -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;