Artis Caune wrote:
> 'IF FOUND THEN' or 'IF variable = X THEN' features are only in plpgsql, i think.
You can frequently achieve similar effects with COALESCE and/or CASE expressions in normal SQL. This can be a LOT faster.
--Craig Ringer