pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@surnet.cl>
To: Donald Fraser <postgres@kiwi-fraser.net>
Cc: [ADMIN] <pgsql-admin@postgresql.org>
Subject: Re: Are cached IMMUTABLE values persistent between sessions
Date: Thu, 23 Jun 2005 10:40:55 -0400
Message-ID: <20050623144055.GC7656@surnet.cl> (raw)
In-Reply-To: <002301c577f7$28141780$6364a8c0@DonAcer>
References: <002301c577f7$28141780$6364a8c0@DonAcer>

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")



view thread (5+ messages)  latest in thread

Message-ID: <20050623144055.GC7656@surnet.cl>
Permalink:  ../20050623144055.GC7656@surnet.cl/
Also on:    postgresql.org/message-id/20050623144055.GC7656@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@surnet.cl, postgres@kiwi-fraser.net
  Subject: Re: Are cached IMMUTABLE values persistent between sessions
  In-Reply-To: <20050623144055.GC7656@surnet.cl>
  References: <002301c577f7$28141780$6364a8c0@DonAcer> <20050623144055.GC7656@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox