- Notifications
You must be signed in to change notification settings - Fork28
Commitd1f5a92
committed
Fix two small bugs in new gistget.c logic.
1. Complain, rather than silently doing nothing, if an "invalid" tupleis found on a leaf page. Per off-list discussion with Heikki.2. Fix oversight in code that removes a GISTSearchItem from the searchqueue: we have to reset lastHeap if this was the last heap item in theparent GISTSearchTreeItem. Otherwise subsequent additions will do thewrong thing. This was probably masked in early testing because in typicalcases the parent item would now be completely empty and would be deleted onnext call. You'd need a queued non-leaf page at exactly the same distanceas a heap tuple to expose the bug.1 parent387e468 commitd1f5a92
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
| 73 | + | |
| 74 | + | |
73 | 75 |
| |
74 | 76 |
| |
75 |
| - | |
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
| |||
403 | 404 |
| |
404 | 405 |
| |
405 | 406 |
| |
| 407 | + | |
| 408 | + | |
406 | 409 |
| |
407 | 410 |
| |
408 | 411 |
| |
|
0 commit comments
Comments
(0)