Re: Stable function being evaluated more than once in a single query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Stable function being evaluated more than once in a single query
Дата
Msg-id 935.1137040403@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Stable function being evaluated more than once in a single query  (Mark Liberman <mliberman@mixedsignals.com>)
Ответы Re: Stable function being evaluated more than once in a single query  ("Jim C. Nasby" <jnasby@pervasive.com>)
Список pgsql-performance
Mark Liberman <mliberman@mixedsignals.com> writes:
> I've got a set-returning function,  defined as STABLE, that I reference twice
> within a single query, yet appears to be evaluated via two seperate function
> scans.

There is no guarantee, express or implied, that this won't be the case.

(Seems like we just discussed this a couple days ago...)

            regards, tom lane

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

Предыдущее
От: Robert Creager
Дата:
Сообщение: Re: Index isn't used during a join.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: indexes on primary and foreign keys