Re: Optimize common expressions in projection evaluation

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Optimize common expressions in projection evaluation
Дата
Msg-id CAKFQuwYQ96h3hmc9sNJixKL13spqGX5V-nGZUArmuTM_qaWyNQ@mail.gmail.com
обсуждение исходный текст
Ответ на Optimize common expressions in projection evaluation  (Peifeng Qiu <pgsql@qiupf.dev>)
Ответы Re: Optimize common expressions in projection evaluation  (Peifeng Qiu <pgsql@qiupf.dev>)
Список pgsql-hackers
On Fri, Dec 2, 2022 at 12:52 AM Peifeng Qiu <pgsql@qiupf.dev> wrote:
Hi hackers.

When a star(*) expands into multiple fields, our current
implementation is to generate multiple copies of the expression
and do FieldSelects. This is very inefficient because the same
expression get evaluated multiple times but actually we only need
to do it once.

And so we implemented the SQL Standard LATERAL and all was well.

Given both how long we didn't have lateral and didn't do something like this, and how long lateral has been around and this hasn't really come up, the need for this code seems not that great.  But as to the code itself I'm unable to properly judge.

David J.

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Error-safe user functions
Следующее
От: Ranier Vilela
Дата:
Сообщение: Re: Optimizing Node Files Support