forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit79ee637
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 parent1c60319 commit79ee637
1 file changed
+17
-12
lines changedLines changed: 17 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
622 | 622 |
| |
623 | 623 |
| |
624 | 624 |
| |
625 |
| - | |
626 |
| - | |
627 |
| - | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
628 | 628 |
| |
629 | 629 |
| |
630 | 630 |
| |
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
634 | 634 |
| |
635 |
| - | |
636 |
| - | |
637 |
| - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
638 | 639 |
| |
639 | 640 |
| |
640 | 641 |
| |
| |||
646 | 647 |
| |
647 | 648 |
| |
648 | 649 |
| |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
649 | 659 |
| |
650 | 660 |
| |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
| 661 | + | |
657 | 662 |
| |
658 | 663 |
| |
659 | 664 |
| |
|
0 commit comments
Comments
(0)