pgsql: Ensure that seqscans check for interrupts at least once per page

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Ensure that seqscans check for interrupts at least once per page
Дата
Msg-id E1SWyjI-0007Q3-Lc@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Ensure that seqscans check for interrupts at least once per page.

If a seqscan encounters many consecutive pages containing only dead tuples,
it can remain in the loop in heapgettup for a long time, and there was no
CHECK_FOR_INTERRUPTS anywhere in that loop.  This meant there were
real-world situations where a query would be effectively uncancelable for
long stretches.  Add a check placed to occur once per page, which should be
enough to provide reasonable response time without adding any measurable
overhead.

Report and patch by Merlin Moncure (though I tweaked it a bit).
Back-patch to all supported branches.

Branch
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c994b9211fd0cf7a5b680ae115330117604b9f7c

Modified Files
--------------
src/backend/access/heap/heapam.c |    7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Ensure that seqscans check for interrupts at least once per page
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Ensure that seqscans check for interrupts at least once per page