Re: Remove useless GROUP BY columns considering unique index

From: Andrei Lepikhov <lepihov(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Zhang Mingli <zmlpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, jian he <jian(dot)universality(at)gmail(dot)com>
Subject: Re: Remove useless GROUP BY columns considering unique index
Date: 2024-11-29 06:35:56
Message-ID: 1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 11/29/24 09:39, David Rowley wrote:
> On Fri, 29 Nov 2024 at 15:02, David Rowley <dgrowleyml(at)gmail(dot)com> wrote:
>> I've attached an updated patch that gets rid of the
>> get_unique_not_null_attnos() function completely and uses the
>> RelOptInfo.indexlist and RelOptInfo.notnullattnums.
>
> I forgot to do a local commit before sending v8. Fixed in the attached v9.
1. Thread reference in the patch comment doesn't work.
2. May it be possible to move remove_useless_groupby_columns in the
second commit? It would be easier to review the differences.

--
regards, Andrei Lepikhov

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2024-11-29 07:04:16 Re: Remove useless GROUP BY columns considering unique index
Previous Message Kirill Reshke 2024-11-29 06:23:12 Re: relfilenode statistics