aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Geoghegan <pg@bowt.ie>2021-08-26 18:42:20 -0700
committerPeter Geoghegan <pg@bowt.ie>2021-08-26 18:42:20 -0700
commit191dce109be3870f5800003bbee1484c8a92c9dd (patch)
tree1e33b30c674e8cd67c19e42fefc44555aa1e1377
parent5bc429aacb3722e55638a776332eebfa88dd60e5 (diff)
downloadpostgresql-191dce109be3870f5800003bbee1484c8a92c9dd.tar.gz
postgresql-191dce109be3870f5800003bbee1484c8a92c9dd.zip
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.
-rw-r--r--contrib/amcheck/verify_heapam.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/amcheck/verify_heapam.c b/contrib/amcheck/verify_heapam.c
index 226271923a8..173f99d7870 100644
--- a/contrib/amcheck/verify_heapam.c
+++ b/contrib/amcheck/verify_heapam.c
@@ -395,6 +395,8 @@ verify_heapam(PG_FUNCTION_ARGS)
{
OffsetNumber maxoff;
+ CHECK_FOR_INTERRUPTS();
+
/* Optionally skip over all-frozen or all-visible blocks */
if (skip_option != SKIP_PAGES_NONE)
{