Richard Huxton <dev@archonet.com> writes:
> You could return a SETOF myrowtype where the set contains only one row -
> that's probably what you're after. Then you can do things like:
> SELECT * FROM set_returning_function(1,'a');
You're confusing SETOF with returning a composite type --- actually they
are orthogonal features that can be used separately. Obviously the docs
could stand to be improved in this area :-(
regards, tom lane