Chana Slutzkin <chana(at)cs(dot)huji(dot)ac(dot)il> writes:
> In 8.1.3, a PL/Perl function that returns 'SETOF',
> when used in the SELECT list of a query, generates the following error:
> "set-valued function called in context that cannot accept a set"
This is a consequence of
http://archives.postgresql.org/pgsql-committers/2005-06/msg00054.php
and is not likely to change. Sorry.
regards, tom lane