Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT
Дата
Msg-id
19539.1390426009@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jon Nelson <jnelson+pgsql@jamponi.net>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Tom Lane <tgl@sss.pgh.pa.us>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jeremy Harris <jgh@wizmail.org>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Tom Lane <tgl@sss.pgh.pa.us>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jon Nelson <jnelson+pgsql@jamponi.net>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jon Nelson <jnelson+pgsql@jamponi.net>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jon Nelson <jnelson+pgsql@jamponi.net>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Michael Paquier <michael.paquier@gmail.com>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jon Nelson <jnelson+pgsql@jamponi.net>
Re: PoC: Duplicate Tuple Elidation during External Sort for DISTINCT Jeremy Harris <jgh@wizmail.org>
Jeremy Harris  writes:
> On 22/01/14 03:53, Tom Lane wrote:
>> Jon Nelson  writes:
>>> - in createplan.c, eliding duplicate tuples is enabled if we are
>>> creating a unique plan which involves sorting first

>> [ raised eyebrow ... ]  And what happens if the planner drops the
>> unique step and then the sort doesn't actually go to disk?

> I don't think Jon was suggesting that the planner drop the unique step.

Hm, OK, maybe I misread what he said there.  Still, if we've told
tuplesort to remove duplicates, why shouldn't we expect it to have
done the job?  Passing the data through a useless Unique step is
not especially cheap.
		regards, tom lane


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Peter Geoghegan
Дата:
FAQ