Re: Remove useless GROUP BY columns considering unique index

From: jian he <jian(dot)universality(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>
Subject: Re: Remove useless GROUP BY columns considering unique index
Date: 2024-11-29 01:26:19
Message-ID: CACJufxHyGt+bCQwfvuFQS6HTtYe2jDkRgNXhjCkmfGBNRMvQwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

minor changes in get_unique_not_null_attnos:

* cosmetic changes
* if the returned list length is less than 2, no need sort.

Attachment Content-Type Size
v7-0001-remove-useless-group-by-columns-via-unique-not-nu.patch text/x-patch 19.1 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tender Wang 2024-11-29 01:39:14 Re: Remove an unnecessary check on semijoin_target_ok() on postgres_fdw.c
Previous Message Sutou Kouhei 2024-11-29 01:07:13 Re: Make COPY format extendable: Extract COPY TO format implementations