Re: short ciruit logic of plpgsql in 8.2

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: short ciruit logic of plpgsql in 8.2
Дата
Msg-id 13381.1179437961@sss.pgh.pa.us
обсуждение исходный текст
Ответ на short ciruit logic of plpgsql in 8.2  (Richard Broersma Jr <rabroersma@yahoo.com>)
Ответы Re: short ciruit logic of plpgsql in 8.2  ("Ian Harding" <harding.ian@gmail.com>)
Список pgsql-general
Richard Broersma Jr <rabroersma@yahoo.com> writes:
> Does anyone know if logic operations in plpgsql are short circuited in 8.2?

They are often optimized, but if you expect "short circuiting" following
exactly the rules of, say, C, you are likely to be disappointed.  See
the manual:

http://www.postgresql.org/docs/8.2/static/sql-expressions.html#SYNTAX-EXPRESS-EVAL

            regards, tom lane

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

Предыдущее
От: PFC
Дата:
Сообщение: Re: Fault Tolerant Postgresql (two machines, two postmasters, one disk array)
Следующее
От: PFC
Дата:
Сообщение: Re: 8.0, UTF8, and CLIENT_ENCODING