diff options
author | Tom Lane | 2021-02-05 00:12:09 +0000 |
---|---|---|
committer | Tom Lane | 2021-02-05 00:12:14 +0000 |
commit | 82e0e29308dedbc6000e73329beb112ae7e1ad39 (patch) | |
tree | 8581de677c324f051ce021eac95e56bc20eb7bf4 /src/bin/scripts/scripts_parallel.h | |
parent | c34787f910585f82320f78b0afd53a6a170aa229 (diff) |
Fix YA incremental sort bug.
switchToPresortedPrefixMode() did the wrong thing if it detected
a batch boundary just at the last tuple of a fullsort group.
The initially-reported symptom was a "retrieved too many tuples in a
bounded sort" error, but the test case added here just silently gives
the wrong answer without this patch.
I (tgl) am not really happy about committing this patch without review
from the incremental-sort authors, but they seem AWOL and we are hard
against a release deadline. This does demonstrably make some cases
better, anyway.
Per bug #16846 from Yoran Heling. Back-patch to v13 where incremental
sort was introduced.
Neil Chen
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/scripts/scripts_parallel.h')
0 files changed, 0 insertions, 0 deletions