Re: [SQL] Re: performance drop when function argument is evaluated in WHERE clause - Mailing list pgsql-performance

From Tom Lane
Subject Re: [SQL] Re: performance drop when function argument is evaluated in WHERE clause
Date
Msg-id 19249.1396978897@sss.pgh.pa.us
Whole thread Raw
In response to Re: performance drop when function argument is evaluated in WHERE clause  (Gerardo Herzig <gherzig@fmed.uba.ar>)
List pgsql-performance
Gerardo Herzig <gherzig@fmed.uba.ar> writes:
> Tom, thanks (as allways) for your answer. This is a 9.1.12. I have to say, im not very happy about if-elif-else'ing
atall.  
> The "conditional filter" es a pretty common pattern in our functions, i would have to add (and maintain) a
substantialamount of extra code. 

In that case consider moving to 9.2 or later.  I believe it'd handle
this scenario better.

            regards, tom lane


pgsql-performance by date:

Previous
From: Gerardo Herzig
Date:
Subject: Re: performance drop when function argument is evaluated in WHERE clause
Next
From: uher dslij
Date:
Subject: Re: Performance regressions in PG 9.3 vs PG 9.0