forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0140bee
committed
Check for interrupts and stack overflow during rule/view dumps.
Since ruleutils.c recurses, it could be driven to stack overflow bydeeply nested constructs. Very large queries might also take longenough to deparse that a check for interrupts seems like a good idea.Stick appropriate tests into a couple of key places.Noted by Greg Stark. Back-patch to all supported branches.1 parent0652d77 commit0140bee
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
4000 | 4001 |
| |
4001 | 4002 |
| |
4002 | 4003 |
| |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
4003 | 4008 |
| |
4004 | 4009 |
| |
4005 | 4010 |
| |
| |||
4556 | 4561 |
| |
4557 | 4562 |
| |
4558 | 4563 |
| |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
4559 | 4568 |
| |
4560 | 4569 |
| |
4561 | 4570 |
| |
| |||
6393 | 6402 |
| |
6394 | 6403 |
| |
6395 | 6404 |
| |
| 6405 | + | |
| 6406 | + | |
| 6407 | + | |
| 6408 | + | |
6396 | 6409 |
| |
6397 | 6410 |
| |
6398 | 6411 |
| |
|
0 commit comments
Comments
(0)