Re: plpgsql and logical expression evaluation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: plpgsql and logical expression evaluation
Дата
Msg-id 28885.1209049844@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: plpgsql and logical expression evaluation  (wstrzalka <wstrzalka@gmail.com>)
Список pgsql-general
wstrzalka <wstrzalka@gmail.com> writes:
> So - does it mean that the whole IF-ELSE-ENDIF is not parsed at once -
> but lazy-parsed when the control reaches it, while the IF condition is
> parsed as a single expression and therefore I get error in this case?

Right, for a suitable definition of "parsed".  There is some trivial
syntax checking that happens early (eg, you'll see complaints for
mismatched parentheses) but actually trying to determine the meaning
of an expression happens when control first gets there.

            regards, tom lane

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: error connecting to database: could not open relation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: WAL shipping with archive_timeout & pg_switch_xlog()