"Josh Berkus" <josh(at)agliodbs(dot)com> writes:> There is no ELSEIF in PL/pgSQL.
There is, but IIRC it is new in 7.2.
regards, tom lane