"iscachable" functions

From: Eric B(dot)Ridge <ebr(at)tcdi(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: "iscachable" functions
Date: 2003-02-14 20:14:43
Message-ID: F44C853A-4058-11D7-9576-0003937E3354@tcdi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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? Is it per backend connection, or is it shared
among all backends? Also, is there a way to invalidate this cache or
otherwise expire the values?

thanks!

eric

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-02-14 20:16:05 Re: CREATE TABLE with a name derived from a string
Previous Message Steve Atkins 2003-02-14 20:10:12 Re: Sharing a transaction between programs.