- Notifications
You must be signed in to change notification settings - Fork5
Commit875b0c6
committed
When dealing with multiple grouping columns coming from the same table,
clamp the estimated number of groups to table row count over 10, insteadof table row count; this reflects a heuristic that people probably won'tgroup over a near-unique set of columns, and the knowledge that we don'tcurrently have any way to estimate the correlation of the columns betterthan guessing. This change creates a trivial plan change in one of theregression tests.1 parent0bf2587 commit875b0c6
File tree
2 files changed
+27
-10
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+27
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
1937 | 1937 | | |
1938 | 1938 | | |
1939 | 1939 | | |
1940 | | - | |
1941 | | - | |
1942 | | - | |
1943 | | - | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
1944 | 1947 | | |
1945 | 1948 | | |
1946 | 1949 | | |
| |||
2040 | 2043 | | |
2041 | 2044 | | |
2042 | 2045 | | |
| 2046 | + | |
2043 | 2047 | | |
2044 | 2048 | | |
2045 | 2049 | | |
| |||
2051 | 2055 | | |
2052 | 2056 | | |
2053 | 2057 | | |
| 2058 | + | |
2054 | 2059 | | |
| 2060 | + | |
| 2061 | + | |
2055 | 2062 | | |
2056 | 2063 | | |
2057 | 2064 | | |
| |||
2066 | 2073 | | |
2067 | 2074 | | |
2068 | 2075 | | |
2069 | | - | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
| 2081 | + | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
2070 | 2089 | | |
2071 | | - | |
2072 | | - | |
2073 | 2090 | | |
2074 | 2091 | | |
2075 | 2092 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | 137 | | |
139 | 138 | | |
140 | | - | |
141 | 139 | | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
0 commit comments
Comments
(0)