mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-05 08:48:38 +00:00
Switched to ereport for debug messages [skip ci]
This commit is contained in:
1 parent
2c879e38ab
commit
088c4f6236
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -390,7 +390,7 @@ UpdateProgress(int64 scannedBlocks, BlockNumber totalBlocks)
|
||||
pgstat_progress_update_param(PROGRESS_SCAN_BLOCKS_DONE, Min(scannedBlocks, totalBlocks));
|
||||
#else
|
||||
if (scannedBlocks == totalBlocks || (scannedBlocks % 1000 == 0 && scannedBlocks < totalBlocks))
|
||||
elog(DEBUG1, "hnsw vacuum progress: %.1f%%", 100.0 * Min(scannedBlocks, totalBlocks) / totalBlocks);
|
||||
ereport(DEBUG1, (errmsg("hnsw vacuum progress: %.1f%%", 100.0 * Min(scannedBlocks, totalBlocks) / totalBlocks)));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -330,7 +330,7 @@ AddScanItem(IvfflatScanOpaque so, double distance, ItemPointer heaptid)
|
||||
AddSortItem(so, distance, heaptid);
|
||||
so->useHeap = false;
|
||||
|
||||
elog(DEBUG1, "ivfflat scan no longer fits into work_mem after %d tuples", heap->length);
|
||||
ereport(DEBUG1, (errmsg("ivfflat scan no longer fits into work_mem after %d tuples", heap->length)));
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ UpdateProgress(int64 scannedBlocks, BlockNumber totalBlocks)
|
||||
pgstat_progress_update_param(PROGRESS_SCAN_BLOCKS_DONE, Min(scannedBlocks, totalBlocks));
|
||||
#else
|
||||
if (scannedBlocks == totalBlocks || (scannedBlocks % 1000000 == 0 && scannedBlocks < totalBlocks))
|
||||
elog(DEBUG1, "ivfflat vacuum progress: %.1f%%", 100.0 * Min(scannedBlocks, totalBlocks) / totalBlocks);
|
||||
ereport(DEBUG1, (errmsg("ivfflat vacuum progress: %.1f%%", 100.0 * Min(scannedBlocks, totalBlocks) / totalBlocks)));
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user