forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitae0c8d0
committed
Remove "fuzzy comparison" logic in qsort comparison function for
choose_bitmap_and(). It was way too fuzzy --- per comment, it was meant to be1% relative difference, but was actually coded as 0.01 absolute difference,thus causing selectivities of say 0.001 and 0.000000000001 to be treated asequal. I believe this thinko explains Maxim Boguk's recent complaint. Whilewe could change it to a relative test coded like compare_fuzzy_path_costs(),there's a bigger problem here, which is that any fuzziness at all renders thecomparison function non-transitive, which could confuse qsort() to the pointof delivering completely wrong results. So forget the whole thing and justdo an exact comparison.1 parentca9d503 commitae0c8d0
1 file changed
+6
-8
lines changedLines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
674 | 674 |
| |
675 | 675 |
| |
676 | 676 |
| |
677 |
| - | |
678 | 677 |
| |
679 | 678 |
| |
680 | 679 |
| |
681 | 680 |
| |
682 | 681 |
| |
683 |
| - | |
684 |
| - | |
685 |
| - | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
686 | 685 |
| |
687 |
| - | |
688 |
| - | |
| 686 | + | |
689 | 687 |
| |
690 |
| - | |
| 688 | + | |
691 | 689 |
| |
692 | 690 |
| |
693 | 691 |
| |
|
0 commit comments
Comments
(0)