On Sun, Apr 3, 2022 at 4:34 PM Thomas Munro <thomas.mu...@gmail.com> wrote:
> I probably should have made it clearer in the commit message,
> cc58eecc5 doesn't fix this problem in the master branch.  It only
> fixes the code that incorrectly assumed that datum1 was always
> available.

Attached patch fixes the issue, and includes the test case that you posted.

There is only a one line change to tuplesort.c. This is arguably the
same bug -- abbreviation is just another "haveDatum1 optimization"
that needs to be accounted for.

-- 
Peter Geoghegan

Attachment: v1-0001-Fix-CLUSTER-sort-on-abbreviated-expressions.patch
Description: Binary data

Reply via email to