amcheck/verify_heapam doesn't check for interrupts

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема amcheck/verify_heapam doesn't check for interrupts
Дата
Msg-id CAH2-Wzk-9RtQgb2QiuLv8j2O0j9tSFKPmmch5nWSZhguUxvbrw@mail.gmail.com
обсуждение исходный текст
Ответы Re: amcheck/verify_heapam doesn't check for interrupts  (Mark Dilger <mark.dilger@enterprisedb.com>)
Список pgsql-hackers
I just noticed that the new heapam amcheck verification code can take
a very long time to respond to cancellations from pg_amcheck -- I saw
that it took over 2 minutes on a large database on my workstation.

It looks like we neglect to call CHECK_FOR_INTERRUPTS() anywhere
inside verify_heapam.c. Is there any reason for this? Can't we just
put a CHECK_FOR_INTERRUPTS() at the top of the outermost loop, inside
verify_heapam()?

Not sure if pg_amcheck itself is a factor here too -- didn't get that far.

Thanks
-- 
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Mark all GUC variable as PGDLLIMPORT
Следующее
От: Peter Smith
Дата:
Сообщение: Re: row filtering for logical replication