Re: [ADMIN] Are cached IMMUTABLE values persistent between sessions

2005-06-24 Thread Donald Fraser
"Donald Fraser" writes: Is the returned value of a function defined as IMMUTABLE cached = globally? "Tom Lane" writes: No, in fact it isn't cached at all. IMMUTABLE tells the planner that it's OK to fold a function call with constant inputs to a constant result value at plan time. Nothing mo

Re: [ADMIN] Are cached IMMUTABLE values persistent between sessions

2005-06-23 Thread Michael Fuhr
On Thu, Jun 23, 2005 at 02:26:23PM +0100, Donald Fraser wrote: > > Is the returned value of a function defined as IMMUTABLE cached > globally? In other words could postgresql potentially return a > cached value obtained from one client session to a different client > session? You could experiment

Re: [ADMIN] Are cached IMMUTABLE values persistent between sessions

2005-06-23 Thread Tom Lane
"Donald Fraser" <[EMAIL PROTECTED]> writes: > Is the returned value of a function defined as IMMUTABLE cached = > globally? No, in fact it isn't cached at all. IMMUTABLE tells the planner that it's OK to fold a function call with constant inputs to a constant result value at plan time. Nothing m

Re: [ADMIN] Are cached IMMUTABLE values persistent between sessions

2005-06-23 Thread Alvaro Herrera
On Thu, Jun 23, 2005 at 02:26:23PM +0100, Donald Fraser wrote: > Is the returned value of a function defined as IMMUTABLE cached > globally? In other words could postgresql potentially return a cached > value obtained from one client session to a different client session? Return values from functi