I think you're short an END IF.  Last I checked, plpgsql didn't have
an "else if" construct, so it wants an END IF to go with each IF.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to