Re: performance issue: logical operators are slow inside SQL function: missing optimalization?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: performance issue: logical operators are slow inside SQL function: missing optimalization?
Дата
Msg-id 17549.1283095409@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: performance issue: logical operators are slow inside SQL function: missing optimalization?  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: performance issue: logical operators are slow inside SQL function: missing optimalization?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: performance issue: logical operators are slow inside SQL function: missing optimalization?  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2010/8/29 Tom Lane <tgl@sss.pgh.pa.us>:
>> The one case is inline-able and the other not (because it would result
>> in double evaluation of the volatile function random()).
>> See EXPLAIN VERBOSE.

> I understand now. So it means general advice - don't use a boolean
> operators in SQL function? This issue should be documented somewhere?

It has nothing to do with boolean operators, just double evaluation.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: performance issue: logical operators are slow inside SQL function: missing optimalization?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: performance issue: logical operators are slow inside SQL function: missing optimalization?