Re: Are cached IMMUTABLE values persistent between sessions - Mailing list pgsql-admin

From Alvaro Herrera
Subject Re: Are cached IMMUTABLE values persistent between sessions
Date
Msg-id 20050623144055.GC7656@surnet.cl
Whole thread Raw
In response to Are cached IMMUTABLE values persistent between sessions  ("Donald Fraser" <postgres@kiwi-fraser.net>)
List pgsql-admin
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 functions are never cached at all, not even for
immutable functions.  The mutability flag (currently) is only used for
deciding the "optimizability" of the function within the query's
execution.

--
Alvaro Herrera (<alvherre[a]surnet.cl>)
"El que vive para el futuro es un iluso, y el que vive para el pasado,
un imbécil" (Luis Adler, "Los tripulantes de la noche")

pgsql-admin by date:

Previous
From: "Donald Fraser"
Date:
Subject: Are cached IMMUTABLE values persistent between sessions
Next
From: Tom Lane
Date:
Subject: Re: Are cached IMMUTABLE values persistent between sessions