forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit774a78f
committed
Fix GIN data page split ratio calculation.
The code that tried to split a page at 75/25 ratio, when appending to theend of an index, was buggy in two ways. First, there was a silly typo thatcaused it to just fill the left page as full as possible. But the logic asit was intended wasn't correct either, and would actually have given a ratiocloser to 60/40 than 75/25.Gaetano Mendola spotted the typo. Backpatch to 9.4, where this code was added.1 parent1d35232 commit774a78f
1 file changed
+17
-12
lines changedLines changed: 17 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
624 |
| - | |
625 |
| - | |
626 |
| - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
634 |
| - | |
635 |
| - | |
636 |
| - | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
637 | 638 |
| |
638 | 639 |
| |
639 | 640 |
| |
| |||
645 | 646 |
| |
646 | 647 |
| |
647 | 648 |
| |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
648 | 658 |
| |
649 | 659 |
| |
650 |
| - | |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
| 660 | + | |
656 | 661 |
| |
657 | 662 |
| |
658 | 663 |
| |
|
0 commit comments
Comments
(0)