Re: Questions regarding distinct operation implementation

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Ankit Kumar Pandey <itsankitkp(at)gmail(dot)com>
Cc: pghackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Questions regarding distinct operation implementation
Date: 2022-11-24 20:44:51
Message-ID: CAApHDvqqOVcyyjKpMGW5ugKcFgiHoH5hq5rdDUwvu8Pz9hiSDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 25 Nov 2022 at 06:57, Ankit Kumar Pandey <itsankitkp(at)gmail(dot)com> wrote:
> Please let me know any opinions on this.

I think if you're planning on working on this then step 1 would have
to be checking the SQL standard to see which set of rows it asks
implementations to consider for duplicate checks when deciding if the
transition should be performed or not. Having not looked, I don't
know if this is the entire partition or just the rows in the current
frame.

Depending on what you want, an alternative today would be to run a
subquery to uniquify the rows the way you want and then do the window
function stuff.

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2022-11-24 21:11:45 Re: indentation in _hash_pgaddtup()
Previous Message Peter Smith 2022-11-24 20:42:50 Re: Time delayed LR (WAS Re: logical replication restrictions)