forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit887cdff
committed
Add CHECK_FOR_INTERRUPTS() to the repeat() function
The repeat() function loops for potentially a long time withoutever checking for interrupts. This prevents, for example, a querycancel from interrupting until the work is all done. Fix byinserting a CHECK_FOR_INTERRUPTS() into the loop.Backpatch to all supported versions.Discussion:https://www.postgresql.org/message-id/flat/8692553c-7fe8-17d9-cbc1-7cddb758f4c6%40joeconway.com1 parent5b1c61e commit887cdff
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
1061 | 1062 |
| |
1062 | 1063 |
| |
1063 | 1064 |
| |
| 1065 | + | |
1064 | 1066 |
| |
1065 | 1067 |
| |
1066 | 1068 |
| |
|
0 commit comments
Comments
(0)