Re: Expression Pruning in postgress

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Expression Pruning in postgress
Дата
Msg-id 3562.1310318917@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Expression Pruning in postgress  (HarmeekSingh Bedi <harmeeksingh@gmail.com>)
Ответы Re: Expression Pruning in postgress
Список pgsql-hackers
HarmeekSingh Bedi <harmeeksingh@gmail.com> writes:
> Thanks Tom. Here is a example. Just a background of things . I have made
> changes in postgress execution and storage engine to make it a MPP style
> engine - keeping all optimizer intact. Basically take pgress serial plan and
> construct a parallel plan. The query I am running is below.

The output lists for the parallel nodes look pretty broken, but I guess
you weren't asking about those.  As near as I can tell, what you're
unhappy about is that it's passing up both raw column values and
pre-evaluated placeholder expressions using those values, when only the
placeholders are really going to be needed.  Yeah, that's probably true,
because the placeholder mechanism isn't (yet) taken into account by the
code that determines how far up a column value will be needed.

In standard Postgres this isn't much of an issue because passing up
by-reference Datums is really quite cheap ... it's only a pointer copy
in many cases, and even where it's not, it's probably just a
toast-pointer copy.  I suspect it's costing you more because your
"parallel" nodes have to instantiate the tuples instead of just passing
virtual slots around ... but it's still not clear to me why you're
passing more than a toast pointer for big values.  Maybe you're being
too enthusiastic about detoasting pointers early?
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Enhanced psql in core?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Initial Review: JSON contrib modul was: Re: Another swing at JSON