- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitedca44b
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.I re-pgindent'd the files touched here, which affects some unrelatedcomments.This is, I believe, just a minor optimization not a bug fix, so noback-patch.1 parent7ac5d9b commitedca44b
File tree
4 files changed
+36
-79
lines changed- src
- backend
- nodes
- optimizer
- path
- util
- include/nodes
4 files changed
+36
-79
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1891 | 1891 |
| |
1892 | 1892 |
| |
1893 | 1893 |
| |
| 1894 | + | |
1894 | 1895 |
| |
1895 | 1896 |
| |
1896 | 1897 |
| |
1897 | 1898 |
| |
1898 | 1899 |
| |
1899 | 1900 |
| |
1900 |
| - | |
1901 | 1901 |
| |
1902 | 1902 |
| |
1903 | 1903 |
| |
|
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: 11 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
| 106 | + | |
107 | 107 |
| |
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
114 | 115 |
| |
115 | 116 |
| |
116 | 117 |
| |
117 | 118 |
| |
118 |
| - | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
| 376 | + | |
376 | 377 |
| |
377 | 378 |
| |
378 | 379 |
| |
379 | 380 |
| |
380 | 381 |
| |
381 | 382 |
| |
382 | 383 |
| |
383 |
| - | |
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
| |||
448 | 448 |
| |
449 | 449 |
| |
450 | 450 |
| |
451 |
| - | |
452 |
| - | |
| 451 | + | |
| 452 | + | |
453 | 453 |
| |
454 |
| - | |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
459 |
| - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
460 | 460 |
| |
461 | 461 |
| |
462 | 462 |
| |
|
Lines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
102 |
| - | |
| 102 | + | |
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
108 |
| - | |
| 108 | + | |
109 | 109 |
| |
110 |
| - | |
| 110 | + | |
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| |||
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
| 360 | + | |
360 | 361 |
| |
361 | 362 |
| |
362 | 363 |
| |
| |||
371 | 372 |
| |
372 | 373 |
| |
373 | 374 |
| |
374 |
| - | |
375 |
| - | |
376 | 375 |
| |
377 | 376 |
| |
378 | 377 |
| |
| |||
388 | 387 |
| |
389 | 388 |
| |
390 | 389 |
| |
391 |
| - | |
| 390 | + | |
392 | 391 |
| |
393 | 392 |
| |
394 | 393 |
| |
| |||
463 | 462 |
| |
464 | 463 |
| |
465 | 464 |
| |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
466 | 469 |
| |
467 | 470 |
| |
468 | 471 |
| |
| |||
472 | 475 |
| |
473 | 476 |
| |
474 | 477 |
| |
475 |
| - | |
476 | 478 |
| |
477 | 479 |
| |
478 | 480 |
| |
| |||
1717 | 1719 |
| |
1718 | 1720 |
| |
1719 | 1721 |
| |
1720 |
| - | |
1721 | 1722 |
| |
1722 | 1723 |
| |
1723 | 1724 |
| |
| |||
1726 | 1727 |
| |
1727 | 1728 |
| |
1728 | 1729 |
| |
1729 |
| - | |
1730 | 1730 |
| |
1731 | 1731 |
| |
1732 | 1732 |
| |
|
0 commit comments
Comments
(0)