- Notifications
You must be signed in to change notification settings - Fork5
Commit8b109eb
committed
Teach planner to convert simple UNION ALL subqueries into append relations,
thereby sharing code with the inheritance case. This puts the UNION-ALL-viewapproach to partitioned tables on par with inheritance, so far as constraintexclusion is concerned: it works either way. (Still need to update the docsto say so.) The definition of "simple UNION ALL" is a little simpler thanI would like --- basically the union arms can only be SELECT * FROM foo--- but it's good enough for partitioned-table cases.1 parenta25b1de commit8b109eb
File tree
10 files changed
+888
-388
lines changed- src
- backend/optimizer
- path
- plan
- prep
- util
- include/optimizer
10 files changed
+888
-388
lines changedLines changed: 50 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
45 | 47 |
| |
46 | 48 |
| |
47 | 49 |
| |
| |||
133 | 135 |
| |
134 | 136 |
| |
135 | 137 |
| |
136 |
| - | |
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
| |||
145 | 146 |
| |
146 | 147 |
| |
147 | 148 |
| |
148 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 |
| |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
170 | 183 |
| |
171 | 184 |
| |
172 |
| - | |
| 185 | + | |
173 | 186 |
| |
174 |
| - | |
175 | 187 |
| |
176 | 188 |
| |
177 | 189 |
| |
| |||
181 | 193 |
| |
182 | 194 |
| |
183 | 195 |
| |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 | 196 |
| |
188 | 197 |
| |
189 | 198 |
| |
| |||
265 | 274 |
| |
266 | 275 |
| |
267 | 276 |
| |
| 277 | + | |
268 | 278 |
| |
269 | 279 |
| |
270 | 280 |
| |
| |||
346 | 356 |
| |
347 | 357 |
| |
348 | 358 |
| |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
349 | 364 |
| |
350 |
| - | |
| 365 | + | |
351 | 366 |
| |
352 |
| - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
353 | 373 |
| |
354 | 374 |
| |
355 | 375 |
| |
|
Lines changed: 4 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
| |||
856 | 855 |
| |
857 | 856 |
| |
858 | 857 |
| |
859 |
| - | |
860 |
| - | |
861 | 858 |
| |
862 | 859 |
| |
863 | 860 |
| |
| |||
899 | 896 |
| |
900 | 897 |
| |
901 | 898 |
| |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 |
| - | |
906 |
| - | |
907 |
| - | |
908 |
| - | |
909 |
| - | |
910 |
| - | |
911 |
| - | |
912 |
| - | |
913 |
| - | |
914 |
| - | |
915 |
| - | |
916 |
| - | |
917 |
| - | |
918 |
| - | |
919 |
| - | |
920 |
| - | |
921 |
| - | |
922 |
| - | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
923 | 902 |
| |
924 | 903 |
| |
925 | 904 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
| 225 | + | |
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
|
0 commit comments
Comments
(0)