Re: Optimize common expressions in projection evaluation

Поиск
Список
Период
Сортировка
От Peifeng Qiu
Тема Re: Optimize common expressions in projection evaluation
Дата
Msg-id CAPH51beXAKCtdP1BTsU+HiQ6WDV25WqkYZ_sS5HBA-gJ4iBRPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Optimize common expressions in projection evaluation  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
> Which is properly written as the following, using lateral, which also avoids the problem you describe:
>
> INSERT INTO tbl
> SELECT func_call.*
> FROM ft
> JOIN LATERAL convert_func(ft.rawdata) AS func_call ON true;

I didn't fully realize this syntax until you point out. Just try it out in
our case and this works well. I think My problem is mostly resolved
without the need of this patch.  Thanks!

It's still good to do something about the normal (func(v)).* syntax
if it's still considered legal. I will give a try to expanding it more
cleverly and see if we can avoid the duplicate evaluation issue.

Peifeng Qiu



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: Order getopt arguments
Следующее
От: Niyas Sait
Дата:
Сообщение: Re: [PATCH] Add native windows on arm64 support