Re: Function result cacheing - any comments?

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Joe Conway <mail(at)joeconway(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Function result cacheing - any comments?
Date: 2002-08-19 07:34:22
Message-ID: 5.1.0.14.0.20020819173248.036667b0@mail.rhyme.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 17:03 19/08/2002 +1000, Gavin Sherry wrote:

>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.

Exactly. But obviously not limited to simple mathematical functions.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 0500 83 82 82 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp5.ai.mit.edu:11371 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-08-19 07:41:48 Re: Function result cacheing - any comments?
Previous Message Christopher Kings-Lynne 2002-08-19 07:18:14 Re: Function result cacheing - any comments?