- Notifications
You must be signed in to change notification settings - Fork5
Commitc3c5c02
committed
Simplify LATERAL-related calculations within add_paths_to_joinrel().
While convincing myself that commit7e19db0 would solve both ofthe problems recently reported by Andreas Seltenreich, I realized thatadd_paths_to_joinrel's handling of LATERAL restrictions could be madenoticeably simpler and faster if we were to retain the minimum possibleparameterization for each joinrel (that is, the set of relids supplyingunsatisfied lateral references in it). We already retain that forbaserels, in RelOptInfo.lateral_relids, so we can use that field forjoinrels too.This is a back-port of commitedca44b.I originally intended not to back-patch that, but additional hackingin this area turns out to be needed, making it necessary not optionalto compute lateral_relids for joinrels. In preparation for those fixes,sync the relevant code with HEAD as much as practical. (I did not riskrearranging fields of RelOptInfo in released branches, however.)1 parent4acee11 commitc3c5c02
File tree
4 files changed
+24
-67
lines changed- src
- backend
- nodes
- optimizer
- path
- util
- include/nodes
4 files changed
+24
-67
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1858 | 1858 |
| |
1859 | 1859 |
| |
1860 | 1860 |
| |
| 1861 | + | |
1861 | 1862 |
| |
1862 | 1863 |
| |
1863 | 1864 |
| |
1864 | 1865 |
| |
1865 | 1866 |
| |
1866 | 1867 |
| |
1867 |
| - | |
1868 | 1868 |
| |
1869 | 1869 |
| |
1870 | 1870 |
| |
|
Lines changed: 15 additions & 58 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
86 | 86 |
| |
87 | 87 |
| |
88 | 88 |
| |
89 |
| - | |
90 | 89 |
| |
91 | 90 |
| |
92 | 91 |
| |
| |||
151 | 150 |
| |
152 | 151 |
| |
153 | 152 |
| |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
160 | 158 |
| |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
| 159 | + | |
| 160 | + | |
208 | 161 |
| |
209 | 162 |
| |
210 | 163 |
| |
| |||
386 | 339 |
| |
387 | 340 |
| |
388 | 341 |
| |
389 |
| - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
390 | 347 |
| |
391 |
| - | |
| 348 | + | |
392 | 349 |
| |
393 | 350 |
| |
394 | 351 |
| |
| |||
465 | 422 |
| |
466 | 423 |
| |
467 | 424 |
| |
468 |
| - | |
| 425 | + | |
469 | 426 |
| |
470 | 427 |
| |
471 | 428 |
| |
| |||
547 | 504 |
| |
548 | 505 |
| |
549 | 506 |
| |
550 |
| - | |
| 507 | + | |
551 | 508 |
| |
552 | 509 |
| |
553 | 510 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
| 112 | + | |
112 | 113 |
| |
113 | 114 |
| |
114 | 115 |
| |
115 | 116 |
| |
116 |
| - | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| |||
370 | 370 |
| |
371 | 371 |
| |
372 | 372 |
| |
| 373 | + | |
373 | 374 |
| |
374 | 375 |
| |
375 | 376 |
| |
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
379 | 380 |
| |
380 |
| - | |
381 | 381 |
| |
382 | 382 |
| |
383 | 383 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
344 | 344 |
| |
345 | 345 |
| |
346 | 346 |
| |
| 347 | + | |
347 | 348 |
| |
348 | 349 |
| |
349 | 350 |
| |
| |||
358 | 359 |
| |
359 | 360 |
| |
360 | 361 |
| |
361 |
| - | |
362 |
| - | |
363 | 362 |
| |
364 | 363 |
| |
365 | 364 |
| |
| |||
375 | 374 |
| |
376 | 375 |
| |
377 | 376 |
| |
378 |
| - | |
| 377 | + | |
379 | 378 |
| |
380 | 379 |
| |
381 | 380 |
| |
| |||
449 | 448 |
| |
450 | 449 |
| |
451 | 450 |
| |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
452 | 455 |
| |
453 | 456 |
| |
454 | 457 |
| |
| |||
458 | 461 |
| |
459 | 462 |
| |
460 | 463 |
| |
461 |
| - | |
462 | 464 |
| |
463 | 465 |
| |
464 | 466 |
| |
| |||
1690 | 1692 |
| |
1691 | 1693 |
| |
1692 | 1694 |
| |
1693 |
| - | |
1694 | 1695 |
| |
1695 | 1696 |
| |
1696 | 1697 |
| |
| |||
1699 | 1700 |
| |
1700 | 1701 |
| |
1701 | 1702 |
| |
1702 |
| - | |
1703 | 1703 |
| |
1704 | 1704 |
| |
1705 | 1705 |
| |
|
0 commit comments
Comments
(0)