Re: Function is called multiple times in subselect - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Function is called multiple times in subselect
Date
Msg-id 8978.1079102499@sss.pgh.pa.us
Whole thread Raw
In response to Re: Function is called multiple times in subselect  ("Alex J. Avriette" <alex@posixnap.net>)
Responses Re: Function is called multiple times in subselect
List pgsql-bugs
"Alex J. Avriette" <alex@posixnap.net> writes:
> And if you are concerned about the query's cost vs its actual output
> (you weren't clear in your original message), there is the 'iscachable'
> pragma for functions.

I think that's unrelated to Chris' problem.

One of the reasons we renamed that pragma to "immutable" is that too
many people were interpreting it as suggesting that Postgres would do
some kind of caching of the function's results.  There is no such cache.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Alex J. Avriette"
Date:
Subject: Re: Function is called multiple times in subselect
Next
From: Chris Campbell
Date:
Subject: Re: Function is called multiple times in subselect