Re: CLUSTER sort on abbreviated expressions is broken

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: John Naylor <john.naylor@enterprisedb.com>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2022-04-21T00:18:07Z
Lists: pgsql-hackers
On Tue, Apr 12, 2022 at 11:01 AM Peter Geoghegan <pg@bowt.ie> wrote:
> Attached patch fixes the issue, and includes the test case that you posted.

Pushed a similar patch just now. Backpatched to all supported branches.

-- 
Peter Geoghegan



Commits

  1. Fix CLUSTER tuplesorts on abbreviated expressions.

  2. Fix tuplesort optimization for CLUSTER-on-expression.