Yes... Described in "38.4. Expressions"... To be more exact, it's neither bug nor feature. To evaluate an integral CASE ... END expression, the 'main' SQL engine needs all its parameters passed to exist at least. But the evaluation rules (I think) remain the same both in separate SQL queries and server procedures.
Thanks for reply, closed. Dmitry. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs