Skip site navigation (1) Skip section navigation (2)

Re: Are cached IMMUTABLE values persistent between sessions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Donald Fraser" <postgres(at)kiwi-fraser(dot)net>
Cc: "[ADMIN]" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Are cached IMMUTABLE values persistent between sessions
Date: 2005-06-23 14:33:03
Message-ID: 4917.1119537183@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
"Donald Fraser" <postgres(at)kiwi-fraser(dot)net> 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 more.

			regards, tom lane

In response to

Responses

pgsql-admin by date

Next:From: Alvaro HerreraDate: 2005-06-23 14:40:55
Subject: Re: Are cached IMMUTABLE values persistent between sessions
Previous:From: Milorad PolugaDate: 2005-06-23 14:11:08
Subject: How to compare the schemas ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group