Re: IMMUTABLE function's flag do not work: 7.3.4, plpgsql - Mailing list pgsql-performance

From Gaetano Mendola
Subject Re: IMMUTABLE function's flag do not work: 7.3.4, plpgsql
Date
Msg-id 3F858FCE.3040907@bigfoot.com
Whole thread Raw
In response to Re: IMMUTABLE function's flag do not work: 7.3.4, plpgsql  (Andriy Tkachuk <ant@imt.com.ua>)
Responses Re: IMMUTABLE function's flag do not work: 7.3.4, plpgsql
List pgsql-performance
Andriy Tkachuk wrote:
> On Wed, 8 Oct 2003, Tom Lane wrote:
>
>
>>Andriy Tkachuk <ant@imt.com.ua> writes:
>>
>>>At second. calc_total() is immutable function:
>>>but it seems that it's not cached in one session:
>>
>>It's not supposed to be.
>
>
> but it's written id doc:
>
>               IMMUTABLE indicates that the function always  returns  the  same
>               result when given the same argument values; that is, it does not
>               do database lookups or otherwise use  information  not  directly
>               present in its parameter list. If this option is given, any call
>               of the function with all-constant arguments can  be  immediately
>               replaced with the function value.

The doc say "can be" not must and will be.



Regards
Gaetano Mendola


pgsql-performance by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Any 7.4 w32 numbers in yet?
Next
From: Josh Berkus
Date:
Subject: Re: [pgsql-advocacy] OFFTOPIC: PostgreSQL vs MySQL