Re: Allow parallel DISTINCT - Mailing list pgsql-hackers

From David Rowley
Subject Re: Allow parallel DISTINCT
Date
Msg-id CAApHDvpAZywMtnC0Hy-z40WrQkA6Wou45jMWKBrW-1Lz8BHb5g@mail.gmail.com
Whole thread Raw
In response to Re: Allow parallel DISTINCT  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: Allow parallel DISTINCT
List pgsql-hackers
On Wed, 18 Aug 2021 at 08:50, Zhihong Yu <zyu@yugabyte.com> wrote:
> The patch is good from my point of view.

Thanks for the review.  I looked over the patch again and the only
thing I adjusted was the order of the RESETs in the regression tests.

I left the " if (distinct_rel->pathlist == NIL)" ERROR case check so
that the ERROR is raised before we call the FDW function and hook
function to add more paths.  Part of me thinks it should probably go
afterwards, but I didn't want to change the behaviour there.   The
other part of me thinks that if you can't do distinct by sorting or
hashing then there's not much hope for the hook to add any paths
either.

I've pushed this to master now.

David



pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Hook for extensible parsing.
Next
From: Michael Paquier
Date:
Subject: Re: Mark all GUC variable as PGDLLIMPORT