Re: CLUSTER sort on abbreviated expressions is broken
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Peter Geoghegan <pg@bowt.ie>
Cc: John Naylor <john.naylor@enterprisedb.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-04-03T23:33:28Z
Lists: pgsql-hackers
On Mon, Apr 4, 2022 at 11:12 AM Peter Geoghegan <pg@bowt.ie> wrote: > We will need a backpatchable fix, since Thomas' recent fix (commit > cc58eecc5d75a9329a6d49a25a6499aea7ee6fd6) only targeted the master > branch. 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. Now it skips the optimised path, and falls back to the slow path, that still has *this* bug, and the test upthread still fails. I wrote about this separately because it's clearly independent and I didn't want it to be mistaken for an open item for 15.
Commits
-
Fix CLUSTER tuplesorts on abbreviated expressions.
- 8ab0ebb9a842 15.0 landed
- e4521841a1ee 14.3 landed
- 1272630a2497 13.7 landed
- 5487585e376d 12.11 landed
- adb2d84fc2d6 11.16 landed
- a903895b3fe4 10.21 landed
-
Fix tuplesort optimization for CLUSTER-on-expression.
- cc58eecc5d75 15.0 cited