Re: function calls optimization

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function calls optimization
Дата
Msg-id 18500.1572533126@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: function calls optimization  (Andres Freund <andres@anarazel.de>)
Ответы Re: function calls optimization  (Andres Freund <andres@anarazel.de>)
Re: function calls optimization  (Andreas Karlsson <andreas@proxel.se>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On October 31, 2019 7:06:13 AM PDT, Andrzej Barszcz <abusinf@gmail.com> wrote:
>> I almost finished patch optimizing non volatile function calls.
>>
>> select f(t.n) from t where f(t.n) > 10 and f(t.n) < 100;  needs 3 calls
>> of
>> f() for each tuple,
>> after applying patch only 1.
>>
>> Any pros and cons  ?

> Depends on the actual way of implementing this proposal. Think we need more details than what you idea here.

We've typically supposed that the cost of searching for duplicate
subexpressions would outweigh the benefits of sometimes finding them.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: function calls optimization
Следующее
От: Andres Freund
Дата:
Сообщение: Re: function calls optimization