Re: b1 OR b2 <-> ( CASE WHEN b1 THE true ELSE b2 END ): performance bottleneck on logical OR

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: b1 OR b2 <-> ( CASE WHEN b1 THE true ELSE b2 END ): performance bottleneck on logical OR
Дата
Msg-id 14626.1028317212@sss.pgh.pa.us
обсуждение исходный текст
Ответ на b1 OR b2 <-> ( CASE WHEN b1 THE true ELSE b2 END ): performance bottleneck on logical OR  (Cédric Dufour <cedric.dufour@freesurf.ch>)
Ответы Re: b1 OR b2 <-> ( CASE WHEN b1 THE true ELSE b2 END ): performance bottleneck on logical OR  (Cédric Dufour <cedric.dufour@freesurf.ch>)
Список pgsql-general
=?iso-8859-1?Q?C=E9dric_Dufour?= <cedric.dufour@freesurf.ch> writes:
> This tends to prove that the normal OR expression evaluates both left and
> right expression, though evaluating the right expression is useless provided
> the left expression is true.

It proves no such thing.  How about showing us what you actually did,
rather than jumping to (incorrect) conclusions?

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Questions regarding contrib/tsearch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: custom type similar to varchar(#)