- Notifications
You must be signed in to change notification settings - Fork5
Commit2502f45
committed
When a GiST page is split during index build, it might not have a buffer.
Previously it was thought that it's impossible as the code stands, becauseinsertions create buffers as tuples are cascaded downwards, and indexsplit also creaters buffers eagerly for all halves. But the example fromJay Levitt demonstrates that it can happen, when the root page is split.It's in fact OK if the buffer doesn't exist, so we just need to remove thesanity check. In fact, we've been discussing the possibility of destroyingempty buffers to conserve memory, which would render the sanity checkcompletely useless anyway.Fix by Alexander Korotkov1 parentbc8765e commit2502f45
1 file changed
+2
-6
lines changedLines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
606 | 606 |
| |
607 | 607 |
| |
608 | 608 |
| |
609 |
| - | |
610 |
| - | |
611 |
| - | |
612 |
| - | |
613 |
| - | |
614 |
| - | |
| 609 | + | |
| 610 | + | |
615 | 611 |
| |
616 | 612 |
| |
617 | 613 |
| |
|
0 commit comments
Comments
(0)