Re: Using ctid column changes plan drastically

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using ctid column changes plan drastically
Дата
Msg-id 21308.1343139781@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using ctid column changes plan drastically  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: Using ctid column changes plan drastically  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-performance
Thomas Kellerer <spam_eater@gmx.net> writes:
> DELETE FROM dupes
> WHERE id NOT IN (SELECT min(b.id)
>                   FROM   dupes b
>                   GROUP BY first_name, last_Name
>                   HAVING count(*) > 1);

Doesn't that kill the non-duplicates too?

> Why does the usage of the CTID column change the plan so drastically?

IIRC, type tid doesn't have any hash support.

            regards, tom lane

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

Предыдущее
От: Ioannis Anagnostopoulos
Дата:
Сообщение: Heavy inserts load wile querying...
Следующее
От: Torsten Zuehlsdorff
Дата:
Сообщение: Re: ZFS vs. UFS