Skip to content

Commit 191dce1

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 5bc429a commit 191dce1

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
@@ -395,6 +395,8 @@ verify_heapam(PG_FUNCTION_ARGS)
395395
{
396396
OffsetNumber maxoff;
397397

398+
CHECK_FOR_INTERRUPTS();
399+
398400
/* Optionally skip over all-frozen or all-visible blocks */
399401
if (skip_option != SKIP_PAGES_NONE)
400402
{

0 commit comments

Comments
 (0)