Switched to ereport for debug messages [skip ci]

This commit is contained in:
Andrew Kane committed 2026-11-18 01:30:54 -08:00
1 parent 2c879e38ab
commit 088c4f6236
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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
}