On Mon, Oct 26, 2026 at 02:21:00PM -0300, Manu wrote: > heapam_index_validate_scan() reports each block when the scan starts > on it and nothing when the scan ends, so the last block is never > counted, and the phases that follow do not touch the block counters.
Hmm, yeah, it looks like you are right here. We aggregate a block when we start scanning it, meaning that we're missing one block at the end. Adding one progress call at the end of the callback routine sounds like the correct thing to do. I doubt that this is worth bothering outside of HEAD, it's just a slight correctness issue, annoying but not critical even if the waits can be long depending on the transaction activity. -- Michael
signature.asc
Description: PGP signature
