Re: [SQL] Re: performance drop when function argument is evaluated in WHERE clause

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [SQL] Re: performance drop when function argument is evaluated in WHERE clause
Дата
Msg-id 19249.1396978897@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: performance drop when function argument is evaluated in WHERE clause  (Gerardo Herzig <gherzig@fmed.uba.ar>)
Список 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 по дате отправления:

Предыдущее
От: Gerardo Herzig
Дата:
Сообщение: Re: performance drop when function argument is evaluated in WHERE clause
Следующее
От: uher dslij
Дата:
Сообщение: Re: Performance regressions in PG 9.3 vs PG 9.0