Re: Allow parallel DISTINCT - Mailing list pgsql-hackers

From Zhihong Yu
Subject Re: Allow parallel DISTINCT
Date
Msg-id CALNJ-vRLd63reKpo2fgeenV+DuoXj-bdT36upL3brx8c+3DEKw@mail.gmail.com
Whole thread Raw
In response to Re: Allow parallel DISTINCT  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Allow parallel DISTINCT  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers


On Tue, Aug 17, 2021 at 3:59 AM David Rowley <dgrowleyml@gmail.com> wrote:
On Tue, 17 Aug 2021 at 20:07, Zhihong Yu <zyu@yugabyte.com> wrote:
> Can you attach updated patch so that we know more detail about the two new functions; create_final_distinct_paths and
> create_partial_distinct_paths ?

Must've fallen off in transit :)

David
Hi,
Since create_partial_distinct_paths() calls create_final_distinct_paths(), I wonder if numDistinctRows can be passed to create_final_distinct_paths() so that the latter doesn't need to call estimate_num_groups().

Cheers

pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: automatically generating node support functions
Next
From: Zhihong Yu
Date:
Subject: Re: [PATCH] Allow multiple recursive self-references