Re: Projection while performing joins.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Projection while performing joins.
Дата
Msg-id 22865.1044942309@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Projection while performing joins.  (Anagh Lal <anaghlal2001@yahoo.com>)
Ответы Re: Projection while performing joins.
Список pgsql-hackers
Anagh Lal <anaghlal2001@yahoo.com> writes:
>  Why do we not just store the attributes required in
> the join (i.e. those in the join qual conditions and
> the ones in the select list) and then perform sorting
> and retrieval on these tuples rather than on the
> possibly larger tuples with more attributes which we
> project out in the end anyway.

We already do --- the scan nodes project out only the needed columns.

At least, that's true in released versions.  Just a few days ago I put
a hack into CVS tip to skip the projection step for a scan node that's
not topmost in the plan.  As you indicate, that's probably a net loss
when there's a Sort node directly above the scan node.  Needs more
thought...
        regards, tom lane


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

Предыдущее
От: Anagh Lal
Дата:
Сообщение: Projection while performing joins.
Следующее
От: SAKAIDA Masaaki
Дата:
Сообщение: pgbash-7.3 released