diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:12 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:12 -0400 |
commit | 276bea211f08a3b0d6d5753b654322c8efb781d1 (patch) | |
tree | 5963c42ce69afbadd0827fbbdcecb07c5512063e /src/backend/access/gist/gistget.c | |
parent | ae7c8b290f525504978c01d77366a753505d10d5 (diff) | |
download | postgresql-276bea211f08a3b0d6d5753b654322c8efb781d1.tar.gz postgresql-276bea211f08a3b0d6d5753b654322c8efb781d1.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/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions