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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-admin by date

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