forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3897ee9
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 parent94095e3 commit3897ee9
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 |
| |
| |||
2608 | 2609 |
| |
2609 | 2610 |
| |
2610 | 2611 |
| |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
2611 | 2616 |
| |
2612 | 2617 |
| |
2613 | 2618 |
| |
| |||
3057 | 3062 |
| |
3058 | 3063 |
| |
3059 | 3064 |
| |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
3060 | 3069 |
| |
3061 | 3070 |
| |
3062 | 3071 |
| |
| |||
4842 | 4851 |
| |
4843 | 4852 |
| |
4844 | 4853 |
| |
| 4854 | + | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
4845 | 4858 |
| |
4846 | 4859 |
| |
4847 | 4860 |
| |
|
0 commit comments
Comments
(0)