Use virtual tuple slot for Unique node

Поиск
Список
Период
Сортировка
От Денис Смирнов
Тема Use virtual tuple slot for Unique node
Дата
Msg-id 388BA879-CAEC-4930-A4EE-F06DC1F12C96@gmail.com
обсуждение исходный текст
Ответы Re: Use virtual tuple slot for Unique node  (David Rowley <dgrowleyml@gmail.com>)
Список pgsql-hackers
Hi,

I have inspected the performance of the GROUP BY and DISTINCT queries for the sorted data streams and found out, that
Groupnode (produced by GROUP BY) works faster then the Unique node (produced by DISTINCT).  The flame graph should out
thereason - Unique palloc`s tuples for the result slot while the Group node doesn’t. 

I wonder, why do we use minimal tuples for the Unique node instead of the virtual ones? It looks like there is no
actualreason for that as Unique doesn’t make any materialization. 

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: More new SQL/JSON item methods
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: EBCDIC sorting as a use case for ICU rules