"Ignacio Colmenero" <ignacio(dot)colmenero(at)micotan(dot)com> writes:> I get the error: ERROR: control reached end of function without RETURN
> What can be wrong?
You don't have a RETURN statement.
regards, tom lane