pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Lepikhov <lepihov@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Zhang Mingli <zmlpostgres@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: jian he <jian.universality@gmail.com>
Subject: Re: Remove useless GROUP BY columns considering unique index
Date: Fri, 29 Nov 2024 13:35:56 +0700
Message-ID: <1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com> (raw)
In-Reply-To: <CAApHDvrJjL3fLGoNh5QnPKx4b8ckDbAXeY1H+E6smFj8cULORQ@mail.gmail.com>
References: <f389a811-f427-4448-997e-b639343ecdb1@Spark>
	<327990c8-b9b2-4b0c-bffb-462249f82de0@Spark>
	<CAApHDvqHW0wo8rFzrtMgYa=bkxjfKOxSjiz_QqO5najWHjoRRg@mail.gmail.com>
	<CACJufxFZn3VAuAPnvVWZ3pk6Kn_zHMJh=n0dpw6gu7B0B-Y3vg@mail.gmail.com>
	<CACJufxGtnCUSAF3R4gX_E8yCm6T7MQAcLguwa50uQJDKs9LF4Q@mail.gmail.com>
	<CAApHDvpbZ2Njs=m-8+rnEr_UjyAyECVH__kjab8SqRcGA0S=Ew@mail.gmail.com>
	<CACJufxE-MzvN0qba1KriQzj5OXJBB32mYdfL4YK4KiJVwi+ofA@mail.gmail.com>
	<CAApHDvp6xkkq7YCGk94jGguxSdq7ewD7VDn3-i-AyJdyhK-Etw@mail.gmail.com>
	<CACJufxENUcVLs0qmpG0JOV7KmDNYQY_qOMQqh_VwOct-SL0ovg@mail.gmail.com>
	<CAApHDvqLezKwoEBBQd0dp4Y9MDkFBDbny0f3SzEeqOFoU7Z5+A@mail.gmail.com>
	<CAApHDvrJjL3fLGoNh5QnPKx4b8ckDbAXeY1H+E6smFj8cULORQ@mail.gmail.com>

On 11/29/24 09:39, David Rowley wrote:
> On Fri, 29 Nov 2024 at 15:02, David Rowley <dgrowleyml@gmail.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





view thread (24+ messages)  latest in thread

Message-ID: <1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com>
Permalink:  ../1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com/
Also on:    postgresql.org/message-id/1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: lepihov@gmail.com, dgrowleyml@gmail.com, zmlpostgres@gmail.com, jian.universality@gmail.com
  Subject: Re: Remove useless GROUP BY columns considering unique index
  In-Reply-To: <1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com>
  References: <f389a811-f427-4448-997e-b639343ecdb1@Spark> <327990c8-b9b2-4b0c-bffb-462249f82de0@Spark> <CAApHDvqHW0wo8rFzrtMgYa=bkxjfKOxSjiz_QqO5najWHjoRRg@mail.gmail.com> <CACJufxFZn3VAuAPnvVWZ3pk6Kn_zHMJh=n0dpw6gu7B0B-Y3vg@mail.gmail.com> <CACJufxGtnCUSAF3R4gX_E8yCm6T7MQAcLguwa50uQJDKs9LF4Q@mail.gmail.com> <CAApHDvpbZ2Njs=m-8+rnEr_UjyAyECVH__kjab8SqRcGA0S=Ew@mail.gmail.com> <CACJufxE-MzvN0qba1KriQzj5OXJBB32mYdfL4YK4KiJVwi+ofA@mail.gmail.com> <CAApHDvp6xkkq7YCGk94jGguxSdq7ewD7VDn3-i-AyJdyhK-Etw@mail.gmail.com> <CACJufxENUcVLs0qmpG0JOV7KmDNYQY_qOMQqh_VwOct-SL0ovg@mail.gmail.com> <CAApHDvqLezKwoEBBQd0dp4Y9MDkFBDbny0f3SzEeqOFoU7Z5+A@mail.gmail.com> <CAApHDvrJjL3fLGoNh5QnPKx4b8ckDbAXeY1H+E6smFj8cULORQ@mail.gmail.com> <1507cbb9-937f-48f5-9931-b67014511f9b@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox