Re: Question about simple function folding optimization

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Question about simple function folding optimization
Дата
Msg-id Pine.LNX.4.44.0304110345140.2212-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: Question about simple function folding optimization  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Question about simple function folding optimization
Список pgsql-hackers
Tom Lane writes:

> But I wonder whether any better answer is possible.  I don't want to
> give up on the inlining optimization --- anyone see another fix?

If a functional index applies to the function, generate one plan with the
function inlined and one with the function call left in, and then plan
away as usual.  While that could blow up the number of plan choices to
consider (which would have to be controlled in some way), this would give
the best end results because the planner could consider the choice knowing
what the function results are used for.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Alice Lottini
Дата:
Сообщение: Integration with Access Method interface
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Integration with Access Method interface