forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55b4966
committed
Fix misleading comment for get_cheapest_group_keys_order
The header comment for get_cheapest_group_keys_order() claimed that theoutput arguments were set to a newly allocated list which may be freed bythe calling function, however, this was not always true as the functionwould simply leave these arguments untouched in some cases.This tripped me up when working on1349d27 as I mistakenly assumed Icould perform a list_concat with the output parameters. That turned outbad due to list_concat modifying the original input lists.In passing, make it more clear that the number of distinct values isimportant to reduce tiebreaks during sorts. Also, explain what then_preordered parameter means.Backpatch-through: 15, where get_cheapest_group_keys_order was introduced.1 parent78a9af1 commit55b4966
1 file changed
+16
-13
lines changedLines changed: 16 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
587 | 587 |
| |
588 | 588 |
| |
589 | 589 |
| |
590 |
| - | |
| 590 | + | |
591 | 591 |
| |
592 |
| - | |
593 |
| - | |
594 |
| - | |
595 |
| - | |
596 |
| - | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
597 | 598 |
| |
598 | 599 |
| |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
606 | 609 |
| |
607 | 610 |
| |
608 | 611 |
| |
|
0 commit comments
Comments
(0)