Skip to content

Commit ba05dfe

Browse files
contrib/amcheck: Add heapam CHECK_FOR_INTERRUPTS().
Add a CHECK_FOR_INTERRUPTS() call to make heap relation verification responsive to query cancellations. Author: Mark Dilger <mark.dilger@enterprisedb.com> Discussion: https://postgr.es/m/CAH2-Wzk-9RtQgb2QiuLv8j2O0j9tSFKPmmch5nWSZhguUxvbrw%40mail.gmail.com Backpatch: 14-, where amcheck heap verification was introduced.
1 parent ed740b0 commit ba05dfe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/amcheck/verify_heapam.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,8 @@ verify_heapam(PG_FUNCTION_ARGS)
380380
{
381381
OffsetNumber maxoff;
382382

383+
CHECK_FOR_INTERRUPTS();
384+
383385
/* Optionally skip over all-frozen or all-visible blocks */
384386
if (skip_option != SKIP_PAGES_NONE)
385387
{

0 commit comments

Comments
 (0)