Re: Questions regarding distinct operation implementation - Mailing list pgsql-hackers

From Ankit Kumar Pandey
Subject Re: Questions regarding distinct operation implementation
Date
Msg-id 0dab98bc-52f5-848b-e17b-766c79502d94@gmail.com
Whole thread Raw
In response to Re: Questions regarding distinct operation implementation  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Questions regarding distinct operation implementation
List pgsql-hackers
On 25/11/22 02:14, David Rowley wrote:
> On Fri, 25 Nov 2022 at 06:57, Ankit Kumar Pandey <itsankitkp@gmail.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
Thanks David, these are excellent pointers, I will look into SQL 
standard first and so on.

-- 
Regards,
Ankit Kumar Pandey




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] Add peer authentication TAP test
Next
From: vignesh C
Date:
Subject: Re: Support logical replication of DDLs