forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfade4d4
committed
Back-patch addition of stack overflow and interrupt checks for lquery.
Experimentation shows that it's not hard at all to drive theold implementation of "ltree ~ lquery" match to stack overflow,so throw in a check_stack_depth() call, as I just did in HEAD.I wasn't able to make it take a long time, because all thepathological cases I tried hit stack overflow first; butI bet there are some others that do take a long time, so addCHECK_FOR_INTERRUPTS() too.Discussion:https://postgr.es/m/CAP_rww=waX2Oo6q+MbMSiZ9ktdj6eaJj0cQzNu=Ry2cCDij5fw@mail.gmail.com1 parent4bc3a16 commitfade4d4
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| |||
165 | 166 |
| |
166 | 167 |
| |
167 | 168 |
| |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
168 | 175 |
| |
169 | 176 |
| |
170 | 177 |
| |
|
0 commit comments
Comments
(0)