forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd8e34fa
committed
Fix incorrect is-this-the-topmost-join tests in parallel planning.
Two callers of generate_useful_gather_paths were testing the wrongthing when deciding whether to call that function: they checked forbeing at the top of the current join subproblem, rather than being atthe actual top join. This'd result in failing to construct parallelpaths for a sub-join for which they might be useful.While set_rel_pathlist() isn't actively broken, it seems best tomake its identical-in-intention test for this be like the other two.This has been wrong all along, but given the lack of field complaintsI'm hesitant to back-patch into stable branches; we usually preferto avoid non-bug-fix changes in plan choices in minor releases.It seems not too late for v15 though.Richard Guo, reviewed by Antonin Houska and Tom LaneDiscussion:https://postgr.es/m/CAMbWs4-mH8Zf87-w+3P2J=nJB+5OyicO28ia9q_9o=Lamf_VHg@mail.gmail.com1 parentd10fad9 commitd8e34fa
2 files changed
+5
-6
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
276 |
| - | |
| 276 | + | |
277 | 277 |
| |
278 | 278 |
| |
279 | 279 |
| |
|
Lines changed: 4 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
554 | 554 |
| |
555 | 555 |
| |
556 | 556 |
| |
557 |
| - | |
558 |
| - | |
559 |
| - | |
| 557 | + | |
| 558 | + | |
560 | 559 |
| |
561 | 560 |
| |
562 |
| - | |
| 561 | + | |
563 | 562 |
| |
564 | 563 |
| |
565 | 564 |
| |
| |||
3435 | 3434 |
| |
3436 | 3435 |
| |
3437 | 3436 |
| |
3438 |
| - | |
| 3437 | + | |
3439 | 3438 |
| |
3440 | 3439 |
| |
3441 | 3440 |
| |
|
0 commit comments
Comments
(0)