Re: pl/pgsql short circuit evaluation?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pl/pgsql short circuit evaluation?
Дата
Msg-id 2341.1235678210@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pl/pgsql short circuit evaluation?  (david@gardnerit.net)
Список pgsql-novice
david@gardnerit.net writes:
> First does pl/pgSQL do short circuit evaluation?

Not in the sense you're looking for.  The entire IF expression is passed
to the evaluator at once and all the plpgsql-level variables in it have
to be available at the start.

            regards, tom lane

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