forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3f90ec8
committed
Postpone generate_gather_paths for topmost scan/join rel.
Don't call generate_gather_paths for the topmost scan/join relationwhen it is initially populated with paths. Instead, do the work ingrouping_planner. By itself, this gains nothing; in fact it losesslightly because we end up calling set_cheapest() for the topmostscan/join rel twice rather than once. However, it paves the way fora future commit which will postpone generate_gather_paths for thetopmost scan/join relation even further, allowing more accuratecosting of parallel paths.Amit Kapila and Robert Haas. Earlier versions of this patch (whichdifferent substantially) were reviewed by Dilip Kumar, AmitKhandekar, Marina Polyakova, and Ashutosh Bapat.1 parentd7c19e6 commit3f90ec8
File tree
3 files changed
+42
-14
lines changed- src/backend/optimizer
- geqo
- path
- plan
3 files changed
+42
-14
lines changedLines changed: 14 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| |||
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 |
| - | |
| 199 | + | |
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
213 |
| - | |
| 213 | + | |
214 | 214 |
| |
215 | 215 |
| |
216 | 216 |
| |
| |||
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
238 |
| - | |
| 238 | + | |
| 239 | + | |
239 | 240 |
| |
240 | 241 |
| |
241 | 242 |
| |
| |||
267 | 268 |
| |
268 | 269 |
| |
269 | 270 |
| |
270 |
| - | |
271 |
| - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
272 | 279 |
| |
273 | 280 |
| |
274 | 281 |
| |
| |||
286 | 293 |
| |
287 | 294 |
| |
288 | 295 |
| |
289 |
| - | |
| 296 | + | |
290 | 297 |
| |
291 | 298 |
| |
292 | 299 |
| |
|
Lines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
482 |
| - | |
483 |
| - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
484 | 486 |
| |
485 |
| - | |
486 |
| - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
487 | 493 |
| |
488 |
| - | |
| 494 | + | |
| 495 | + | |
489 | 496 |
| |
490 | 497 |
| |
491 | 498 |
| |
| |||
2699 | 2706 |
| |
2700 | 2707 |
| |
2701 | 2708 |
| |
2702 |
| - | |
2703 |
| - | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
2704 | 2716 |
| |
2705 | 2717 |
| |
2706 | 2718 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1974 | 1974 |
| |
1975 | 1975 |
| |
1976 | 1976 |
| |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
1977 | 1986 |
| |
1978 | 1987 |
| |
1979 | 1988 |
| |
|
0 commit comments
Comments
(0)