- Notifications
You must be signed in to change notification settings - Fork28
Commit51ee6f3
committed
Replace min_parallel_relation_size with two new GUCs.
When min_parallel_relation_size was added, the only supported typeof parallel scan was a parallel sequential scan, but there arepending patches for parallel index scan, parallel index-only scan,and parallel bitmap heap scan. Those patches introduce two newtypes of complications: first, what's relevant is not really thetotal size of the relation but the portion of it that we will scan;and second, index pages and heap pages shouldn't necessarily betreated in exactly the same way. Typically, the number of indexpages will be quite small, but that doesn't necessarily mean thata parallel index scan can't pay off.Therefore, we introduce min_parallel_table_scan_size, which worksout a degree of parallelism for scans based on the number of tablepages that will be scanned (and which is therefore equivalent tomin_parallel_relation_size for parallel sequential scans) and alsomin_parallel_index_scan_size which can be used to work out a degreeof parallelism based on the number of index pages that will bescanned.Amit Kapila and Robert HaasDiscussion:http://postgr.es/m/CAA4eK1KowGSYYVpd2qPpaPPA5R90r++QwDFbrRECTE9H_HvpOg@mail.gmail.comDiscussion:http://postgr.es/m/CAA4eK1+TnM4pXQbvn7OXqam+k_HZqb0ROZUMxOiL6DWJYCyYow@mail.gmail.com1 parent5d40286 commit51ee6f3
File tree
8 files changed
+105
-38
lines changed- doc/src/sgml
- src
- backend
- optimizer/path
- utils/misc
- include/optimizer
- test/regress
- expected
- sql
8 files changed
+105
-38
lines changedLines changed: 26 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3835 | 3835 |
| |
3836 | 3836 |
| |
3837 | 3837 |
| |
3838 |
| - | |
3839 |
| - | |
| 3838 | + | |
| 3839 | + | |
3840 | 3840 |
| |
3841 |
| - | |
| 3841 | + | |
3842 | 3842 |
| |
3843 | 3843 |
| |
3844 | 3844 |
| |
3845 | 3845 |
| |
3846 |
| - | |
3847 |
| - | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
| 3849 | + | |
| 3850 | + | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
| 3865 | + | |
| 3866 | + | |
| 3867 | + | |
| 3868 | + | |
3848 | 3869 |
| |
3849 | 3870 |
| |
3850 | 3871 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2407 | 2407 |
| |
2408 | 2408 |
| |
2409 | 2409 |
| |
2410 |
| - | |
2411 |
| - | |
| 2410 | + | |
| 2411 | + | |
2412 | 2412 |
| |
2413 | 2413 |
| |
2414 | 2414 |
| |
|
Lines changed: 56 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
126 | 127 |
| |
127 | 128 |
| |
128 | 129 |
| |
129 |
| - | |
| 130 | + | |
| 131 | + | |
130 | 132 |
| |
131 | 133 |
| |
132 | 134 |
| |
| |||
679 | 681 |
| |
680 | 682 |
| |
681 | 683 |
| |
682 |
| - | |
| 684 | + | |
683 | 685 |
| |
684 | 686 |
| |
685 | 687 |
| |
| |||
2876 | 2878 |
| |
2877 | 2879 |
| |
2878 | 2880 |
| |
2879 |
| - | |
2880 |
| - | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
2881 | 2887 |
| |
2882 | 2888 |
| |
2883 |
| - | |
| 2889 | + | |
| 2890 | + | |
2884 | 2891 |
| |
2885 |
| - | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
2886 | 2895 |
| |
2887 | 2896 |
| |
2888 | 2897 |
| |
| |||
2892 | 2901 |
| |
2893 | 2902 |
| |
2894 | 2903 |
| |
2895 |
| - | |
| 2904 | + | |
| 2905 | + | |
2896 | 2906 |
| |
2897 | 2907 |
| |
2898 | 2908 |
| |
| |||
2901 | 2911 |
| |
2902 | 2912 |
| |
2903 | 2913 |
| |
2904 |
| - | |
| 2914 | + | |
| 2915 | + | |
2905 | 2916 |
| |
2906 | 2917 |
| |
2907 | 2918 |
| |
2908 |
| - | |
2909 |
| - | |
2910 |
| - | |
2911 |
| - | |
2912 |
| - | |
2913 |
| - | |
2914 |
| - | |
2915 |
| - | |
2916 |
| - | |
2917 |
| - | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
2918 | 2941 |
| |
2919 |
| - | |
2920 |
| - | |
2921 |
| - | |
2922 |
| - | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
2923 | 2956 |
| |
2924 | 2957 |
| |
2925 | 2958 |
| |
|
Lines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2776 | 2776 |
| |
2777 | 2777 |
| |
2778 | 2778 |
| |
2779 |
| - | |
2780 |
| - | |
2781 |
| - | |
| 2779 | + | |
| 2780 | + | |
| 2781 | + | |
2782 | 2782 |
| |
2783 | 2783 |
| |
2784 |
| - | |
| 2784 | + | |
2785 | 2785 |
| |
2786 | 2786 |
| |
2787 | 2787 |
| |
2788 | 2788 |
| |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
2789 | 2800 |
| |
2790 | 2801 |
| |
2791 | 2802 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
| 303 | + | |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
|
0 commit comments
Comments
(0)