diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:18 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-05-22 19:42:18 -0400 |
| commit | c676f835b544d73b3e75d994000d586f878fcb21 (patch) | |
| tree | 248747228fbfea945bcda87bbad5f8735bf67232 /contrib/pg_stat_statements/pg_stat_statements.c | |
| parent | 26d73ddac43667f80cec530ac8644beeecfd666f (diff) | |
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 'contrib/pg_stat_statements/pg_stat_statements.c')
0 files changed, 0 insertions, 0 deletions
