Re: "iscachable" functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "iscachable" functions
Дата
Msg-id 11570.1045261293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на "iscachable" functions  (Eric B.Ridge <ebr@tcdi.com>)
Список pgsql-general
"Eric B.Ridge" <ebr@tcdi.com> writes:
> For the "iscachable" parameter of CREATE FUNCTION, the 7.2.x
> documentation states:
>     "Iscachable indicates that the function always returns the same result
> when given the same argument values (i.e., it does not do database
> lookups or otherwise use information not directly present in its
> parameter list). The optimizer uses iscachable to know whether it is
> safe to pre-evaluate a call of the function."

> But where is this cache?

There is no cache, only constant-folding of function calls that are
constants at plan time.

The function attribute name(s) have been changed as of 7.3, to "stable"
and "immutable", partly because people kept thinking that the attribute
name implied that we had a cache.

            regards, tom lane

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

Предыдущее
От: Medi Montaseri
Дата:
Сообщение: Re: Linux on PowerPc
Следующее
От: Tom Lane
Дата:
Сообщение: Re: In 7.3.1, will I be able to reindex toast?