Commit 2609e91
committed
Fix regression in parallel planning against inheritance tables.
Commit 51ee6f3 accidentally changed
the behavior around inheritance hierarchies; before, we always
considered parallel paths even for very small inheritance children,
because otherwise an inheritance hierarchy with even one small child
wouldn't be eligible for parallelism. That exception was inadverently
removed; put it back.
In passing, also adjust the degree-of-parallelism comptuation for
index-only scans not to consider the number of heap pages fetched.
Otherwise, we'll avoid parallel index-only scans on tables that are
mostly all-visible, which isn't especially logical.
Robert Haas and Amit Kapila, per a report from Ashutosh Sharma.
Discussion: http://postgr.es/m/CAE9k0PmgSoOHRd60SHu09aRVTHRSs8s6pmyhJKWHxWw9C_x+XA@mail.gmail.com1 parent c11453c commit 2609e91
File tree
3 files changed
+36
-25
lines changed- src
- backend/optimizer/path
- include/optimizer
3 files changed
+36
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
2938 | 2938 | | |
2939 | 2939 | | |
2940 | 2940 | | |
2941 | | - | |
| 2941 | + | |
2942 | 2942 | | |
2943 | 2943 | | |
2944 | 2944 | | |
| |||
2953 | 2953 | | |
2954 | 2954 | | |
2955 | 2955 | | |
2956 | | - | |
2957 | | - | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
2958 | 2961 | | |
2959 | 2962 | | |
2960 | | - | |
2961 | | - | |
| 2963 | + | |
2962 | 2964 | | |
2963 | 2965 | | |
2964 | | - | |
2965 | | - | |
2966 | 2966 | | |
2967 | 2967 | | |
2968 | 2968 | | |
| |||
2972 | 2972 | | |
2973 | 2973 | | |
2974 | 2974 | | |
2975 | | - | |
2976 | | - | |
2977 | | - | |
2978 | 2975 | | |
2979 | | - | |
2980 | | - | |
2981 | | - | |
2982 | | - | |
2983 | | - | |
| 2976 | + | |
| 2977 | + | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
2984 | 2982 | | |
2985 | | - | |
2986 | | - | |
2987 | | - | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
2988 | 2986 | | |
2989 | 2987 | | |
2990 | | - | |
| 2988 | + | |
2991 | 2989 | | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2992 | 2993 | | |
2993 | 2994 | | |
2994 | 2995 | | |
| |||
3008 | 3009 | | |
3009 | 3010 | | |
3010 | 3011 | | |
3011 | | - | |
| 3012 | + | |
3012 | 3013 | | |
| 3014 | + | |
| 3015 | + | |
| 3016 | + | |
3013 | 3017 | | |
3014 | 3018 | | |
3015 | 3019 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
665 | 673 | | |
666 | 674 | | |
667 | 675 | | |
668 | 676 | | |
669 | 677 | | |
670 | 678 | | |
671 | 679 | | |
672 | | - | |
673 | | - | |
| 680 | + | |
674 | 681 | | |
675 | 682 | | |
676 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
| 57 | + | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments