Re: STABLE functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: STABLE functions
Date
Msg-id 20595.1051283586@sss.pgh.pa.us
Whole thread Raw
In response to Re: STABLE functions  (Joachim Wieland <jwieland@kawo2.rwth-aachen.de>)
Responses Re: STABLE functions  (Philip Warner <pjw@rhyme.com.au>)
List pgsql-hackers
Joachim Wieland <jwieland@kawo2.rwth-aachen.de> writes:
> So why is a
>   SELECT ... FROM table WHERE col = f(...)
> (with a STABLE function f) not a "single table scan" 

The point is that the system *may* choose to evaluate f() only once,
not that it *must* do so.  The classification exists to make it valid
to use an indexscan on "col".
        regards, tom lane



pgsql-hackers by date:

Previous
From: Joachim Wieland
Date:
Subject: Re: STABLE functions
Next
From: pgsql@mohawksoft.com
Date:
Subject: Re: close() vs. closesocket()