forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbfd1ffa
committed
Change patternsel (LIKE/regex selectivity estimation) so that if there
is a large enough histogram, it will use the number of matches in thehistogram to derive a selectivity estimate, rather than the admittedlypretty bogus heuristics involving examining the pattern contents. I set'large enough' at 100, but perhaps we should change that later. Alsoapply the same technique in contrib/ltree's <@ and @> estimator. Perdiscussion with Stefan Kaltenbrunner and Matteo Beccati.1 parent06b33f0 commitbfd1ffa
File tree
3 files changed
+242
-113
lines changed- contrib/ltree
- src
- backend/utils/adt
- include/utils
3 files changed
+242
-113
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
606 | 607 | | |
607 | 608 | | |
608 | 609 | | |
| 610 | + | |
609 | 611 | | |
610 | 612 | | |
611 | 613 | | |
| |||
616 | 618 | | |
617 | 619 | | |
618 | 620 | | |
619 | | - | |
620 | | - | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
621 | 625 | | |
622 | | - | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
623 | 655 | | |
624 | 656 | | |
625 | 657 | | |
| |||
0 commit comments
Comments
(0)