Re: An improvement on parallel DISTINCT

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: An improvement on parallel DISTINCT
Дата
Msg-id CAApHDvp9W1Pj_j5yVj=ykP+CU05DaEjqZEsMkwCdZwe4VXWOPg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: An improvement on parallel DISTINCT  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: An improvement on parallel DISTINCT  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-hackers
On Fri, 2 Feb 2024 at 23:39, David Rowley <dgrowleyml@gmail.com> wrote:
> I'll push the patch shortly.

I've pushed the partial path sort part.

Now for the other stuff you had.   I didn't really like this part:

+ /*
+ * Set target for partial_distinct_rel as generate_useful_gather_paths
+ * requires that the input rel has a valid reltarget.
+ */
+ partial_distinct_rel->reltarget = cheapest_partial_path->pathtarget;

I think we should just make it work the same way as
create_grouping_paths(), where grouping_target is passed as a
parameter.

I've done it that way in the attached.

David

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ranier Vilela
Дата:
Сообщение: Re: Avoid unncessary always true test (src/backend/storage/buffer/bufmgr.c)
Следующее
От: John Naylor
Дата:
Сообщение: Re: [PoC] Improve dead tuple storage for lazy vacuum