Ivan <Ivan-Sun1(at)mail(dot)ru> writes:
> Suppose we have sql function which returns composite type.
> When such function's last select statement doesn't return any row
> error occurs -
> ERROR: function returning row cannot return null value.
Works for me (tested in 7.4.5 and CVS tip).
regards, tom lane