Re: IMMUTABLE? - Mailing list pgsql-performance

From Tom Lane
Subject Re: IMMUTABLE?
Date
Msg-id 11508.1147786394@sss.pgh.pa.us
Whole thread Raw
In response to Re: IMMUTABLE?  (Joachim Wieland <joe@mcknight.de>)
Responses Re: IMMUTABLE?  (Joachim Wieland <joe@mcknight.de>)
List pgsql-performance
Joachim Wieland <joe@mcknight.de> writes:
> So irrespective of caching to prevent evaluation across statements, within a
> single statement, is there a strong reason why for example in
> WHERE col = f(const) with f() declared as immutable or stable and without an
> index on col, f() still gets called for every row? Or is this optimization
> just not done yet?

The above statement is not correct, at least not for immutable functions.

            regards, tom lane

pgsql-performance by date:

Previous
From: "Jignesh K. Shah"
Date:
Subject: Re: Pgsql (and mysql) benchmark on T2000/Solaris and some
Next
From: Arjen van der Meijden
Date:
Subject: Re: Pgsql (and mysql) benchmark on T2000/Solaris and some