"Keith Worthington" <keithw(at)narrowpathinc(dot)com> writes: > The following is a section of code inside an SQL function. SQL, or plpgsql? It looks to me like misuse of the plpgsql INTO clause (there can be only one). regards, tom lane