forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit902900b
committed
Adjust reltarget assignment for UPPERREL_PARTIAL_DISTINCT rel
A comment in grouping_planner() claimed that the PlannerInfoupper_targets array was not used in core code. However, the code thatgenerated the paths for the UPPERREL_PARTIAL_DISTINCT rel made thatcomment untrue.Here we adjust the create_distinct_paths() function signature to passdown the PathTarget the same as is done for create_grouping_paths(),thus making the aforementioned comment true again.In passing adjust the order of the upper_targets[] assignments. Theseseem to be following the reverse enum order apart fromUPPERREL_PARTIAL_DISTINCT.Also, update the header comment for generate_gather_paths() to mentionthe function is also used to create gather paths for partial distinctpaths.Author: Richard Guo, David RowleyDiscussion:https://postgr.es/m/CAMbWs48u9VoVOouJsys1qOaC9WVGVmBa+wT1dx8KvxF5GPzezA@mail.gmail.com1 parentaa5edbe commit902900b
2 files changed
+18
-12
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3053 | 3053 |
| |
3054 | 3054 |
| |
3055 | 3055 |
| |
3056 |
| - | |
3057 |
| - | |
3058 |
| - | |
3059 |
| - | |
| 3056 | + | |
| 3057 | + | |
| 3058 | + | |
| 3059 | + | |
3060 | 3060 |
| |
3061 | 3061 |
| |
3062 | 3062 |
| |
|
Lines changed: 14 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
193 |
| - | |
| 193 | + | |
| 194 | + | |
194 | 195 |
| |
195 | 196 |
| |
196 |
| - | |
| 197 | + | |
| 198 | + | |
197 | 199 |
| |
198 | 200 |
| |
199 | 201 |
| |
| |||
1644 | 1646 |
| |
1645 | 1647 |
| |
1646 | 1648 |
| |
1647 |
| - | |
1648 | 1649 |
| |
| 1650 | + | |
1649 | 1651 |
| |
1650 | 1652 |
| |
1651 | 1653 |
| |
| |||
1695 | 1697 |
| |
1696 | 1698 |
| |
1697 | 1699 |
| |
1698 |
| - | |
| 1700 | + | |
| 1701 | + | |
1699 | 1702 |
| |
1700 | 1703 |
| |
1701 | 1704 |
| |
| |||
4568 | 4571 |
| |
4569 | 4572 |
| |
4570 | 4573 |
| |
| 4574 | + | |
4571 | 4575 |
| |
4572 | 4576 |
| |
4573 | 4577 |
| |
4574 | 4578 |
| |
4575 | 4579 |
| |
4576 |
| - | |
| 4580 | + | |
| 4581 | + | |
4577 | 4582 |
| |
4578 | 4583 |
| |
4579 | 4584 |
| |
| |||
4601 | 4606 |
| |
4602 | 4607 |
| |
4603 | 4608 |
| |
4604 |
| - | |
| 4609 | + | |
4605 | 4610 |
| |
4606 | 4611 |
| |
4607 | 4612 |
| |
| |||
4643 | 4648 |
| |
4644 | 4649 |
| |
4645 | 4650 |
| |
4646 |
| - | |
| 4651 | + | |
| 4652 | + | |
4647 | 4653 |
| |
4648 | 4654 |
| |
4649 | 4655 |
| |
| |||
4664 | 4670 |
| |
4665 | 4671 |
| |
4666 | 4672 |
| |
4667 |
| - | |
| 4673 | + | |
4668 | 4674 |
| |
4669 | 4675 |
| |
4670 | 4676 |
| |
|
0 commit comments
Comments
(0)