model-writtenrun 6206 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Peter Geoghegan reported that cancelling heap verification through pg_amcheck could take over two minutes and proposed adding CHECK_FOR_INTERRUPTS() at the top of verify_heapam()'s outermost loop #1.
- Mark Dilger agreed that the interrupt check was missing and explained that pg_amcheck already used the same client cancellation infrastructure as reindexdb and vacuumdb, making a backend fix sufficient in his assessment #2.
- Peter Geoghegan confirmed that B-tree verification already handled interrupts and requested a patch #3; Mark Dilger agreed to provide it #4.
- Mark Dilger submitted a patch that checks for interrupts once per heap block, before any optional page-skipping logic #5.
- Peter Geoghegan committed the patch unchanged as 191dce109b, with a backpatch to PostgreSQL 14, and closed the thread by announcing the commit #6.