Re: Does IMMUTABLE have any effect on functions? - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: Does IMMUTABLE have any effect on functions?
Date
Msg-id 20050303135610.GC22442@svana.org
Whole thread Raw
In response to Does IMMUTABLE have any effect on functions?  (Thomas Schoen <t.schoen@vitrado.de>)
List pgsql-general
Lookup the docs, but IMMUTABLE and other such tags are hints to the
optimiser. If a function is immutable then the optimiser can optimise
away any invocations. If your function isn't actually immutable you've
just caused a problem.

They don't affect the actual function at all...

On Thu, Mar 03, 2005 at 02:17:17PM +0100, Thomas Schoen wrote:
> Hi,
>
> i wonder if the attribute IMMUTABLE has any effect on functions.
> Maybe its not implemented yet?

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment

pgsql-general by date:

Previous
From: Thomas Schoen
Date:
Subject: Does IMMUTABLE have any effect on functions?
Next
From: Jake Stride
Date:
Subject: Re: Compatible Dumps