Re: Does IMMUTABLE have any effect on functions?

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Thomas Schoen <t(dot)schoen(at)vitrado(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does IMMUTABLE have any effect on functions?
Date: 2005-03-03 13:56:55
Message-ID: 20050303135610.GC22442@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jake Stride 2005-03-03 14:02:39 Re: Compatible Dumps
Previous Message Thomas Schoen 2005-03-03 13:17:17 Does IMMUTABLE have any effect on functions?