- Notifications
You must be signed in to change notification settings - Fork28
Commit10fcb83
committed
Fix YA incremental sort bug.
switchToPresortedPrefixMode() did the wrong thing if it detecteda batch boundary just at the last tuple of a fullsort group.The initially-reported symptom was a "retrieved too many tuples in abounded sort" error, but the test case added here just silently givesthe wrong answer without this patch.I (tgl) am not really happy about committing this patch without reviewfrom the incremental-sort authors, but they seem AWOL and we are hardagainst a release deadline. This does demonstrably make some casesbetter, anyway.Per bug #16846 from Yoran Heling. Back-patch to v13 where incrementalsort was introduced.Neil ChenDiscussion:https://postgr.es/m/16846-ae49f51ac379a4cb@postgresql.org1 parent57868d9 commit10fcb83
File tree
3 files changed
+21
-0
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+21
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
394 | 394 |
| |
395 | 395 |
| |
396 | 396 |
| |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
397 | 404 |
| |
398 | 405 |
| |
399 | 406 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
675 | 675 |
| |
676 | 676 |
| |
677 | 677 |
| |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
678 | 689 |
| |
679 | 690 |
| |
680 | 691 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 |
| |
153 | 156 |
| |
154 | 157 |
| |
|
0 commit comments
Comments
(0)