
> The point at issue is that the "stable function" classification was
> defined and implemented to provide a semantically valid way of deciding
> whether it's safe to treat an expression as an indexscan qualifier.
> There is no code that attempts to do anything else with it.

So the problem at hand seems to be, that the optimizer treats the function
as beeing too cheap (does it apply a cost at all ?). Since this function was in 
Pl/SQL it should actually be doable to estimate a cost for the function from 
statistics.
Is there a working way to tell the optimizer that the function is expensive,
and thus make it prefer only evaluating it once ?

Andreas


Mon, 28 Apr 2003 09:51:05 +0200
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: STABLE functions 