Commit ebeb3de
committed
Simplify show_incremental_sort_info a bit
Incremental sort always processes at least one full group group before
switching to prefix groups, so it's enough to check just the number of
full groups. There was no risk of division by zero due to the extra
condition, but it made the code harder to understand.
Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQAp+7qoS92-4V1vLChpdY3vEkLCbf+gye6P-4cirE-0z0A@mail.gmail.com1 parent 9155b4b commit ebeb3de
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2922 | 2922 | | |
2923 | 2923 | | |
2924 | 2924 | | |
2925 | | - | |
2926 | 2925 | | |
2927 | 2926 | | |
2928 | 2927 | | |
2929 | 2928 | | |
2930 | 2929 | | |
2931 | 2930 | | |
2932 | 2931 | | |
2933 | | - | |
2934 | | - | |
| 2932 | + | |
2935 | 2933 | | |
2936 | 2934 | | |
2937 | 2935 | | |
| |||
2940 | 2938 | | |
2941 | 2939 | | |
2942 | 2940 | | |
| 2941 | + | |
2943 | 2942 | | |
2944 | 2943 | | |
2945 | 2944 | | |
| |||
0 commit comments