Re: Function result cacheing - any comments?

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: Function result cacheing - any comments?
Дата
Msg-id GNELIHDDFBOCMGBFGEFOGEMDCDAA.chriskl@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: Function result cacheing - any comments?  (Gavin Sherry <swm@linuxworld.com.au>)
Список pgsql-hackers
> What Philip seems to be asking for is a mechanism where by if a function
> is marked as being mathematically deterministic (given a particular set of
> parameters the same result is always returned -- eg: cos(), sin(),
> etc) then the result is cached and next time the function is called with
> the same argument(s) the result is retrieved from the cache instead of the
> function being run again.

I was under the impression that the sin, cos, tan and like functions are
marked non-volatile in the system catalogs and so are evaluated once per
transaction only.

Chris



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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: Function result cacheing - any comments?
Следующее
От: Philip Warner
Дата:
Сообщение: Re: Function result cacheing - any comments?