pgsql-bugs(at)postgresql(dot)org writes:
> pgplsql: IF-THEN-ELSIF-ELSE acts different from IF-THEN-ELSE IF
> PostgreSQL 7.1.3 on i686-pc-linux-gnu, compiled by GCC 2.96
elsif was implemented in 7.2. I'm surprised you're not getting a syntax
error message; but in any case we are not revisiting 7.1 anymore...
regards, tom lane