Re: Function result cacheing - any comments? - Mailing list pgsql-hackers

From Christopher Kings-Lynne
Subject Re: Function result cacheing - any comments?
Date
Msg-id GNELIHDDFBOCMGBFGEFOGEMDCDAA.chriskl@familyhealth.com.au
Whole thread Raw
In response to Re: Function result cacheing - any comments?  (Gavin Sherry <swm@linuxworld.com.au>)
List 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 by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Function result cacheing - any comments?
Next
From: Philip Warner
Date:
Subject: Re: Function result cacheing - any comments?