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.
This commit is contained in:
parent
5bc429aacb
commit
191dce109b
@ -395,6 +395,8 @@ verify_heapam(PG_FUNCTION_ARGS)
|
|||||||
{
|
{
|
||||||
OffsetNumber maxoff;
|
OffsetNumber maxoff;
|
||||||
|
|
||||||
|
CHECK_FOR_INTERRUPTS();
|
||||||
|
|
||||||
/* Optionally skip over all-frozen or all-visible blocks */
|
/* Optionally skip over all-frozen or all-visible blocks */
|
||||||
if (skip_option != SKIP_PAGES_NONE)
|
if (skip_option != SKIP_PAGES_NONE)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user