diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:05 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:05 -0400 |
commit | ed962fd712bbc0836437c8f789d9152aca5711b5 (patch) | |
tree | 0c236031cce28931812ef19d7a61c2b29cc37a76 /src/backend/regex/regexec.c | |
parent | 92a953fbf8c90c3b316fbc275767efb6994f1589 (diff) | |
download | postgresql-ed962fd712bbc0836437c8f789d9152aca5711b5.tar.gz postgresql-ed962fd712bbc0836437c8f789d9152aca5711b5.zip |
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.
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions