forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc676f83
committed
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 noCHECK_FOR_INTERRUPTS anywhere in that loop. This meant there werereal-world situations where a query would be effectively uncancelable forlong stretches. Add a check placed to occur once per page, which should beenough to provide reasonable response time without adding any measurableoverhead.Report and patch by Merlin Moncure (though I tweaked it a bit).Back-patch to all supported branches.1 parent26d73dd commitc676f83
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
218 | 218 |
| |
219 | 219 |
| |
220 | 220 |
| |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
221 | 228 |
| |
222 | 229 |
| |
223 | 230 |
| |
|
0 commit comments
Comments
(0)