"Ken Winter" <ken@sunward.org> writes:
> select lov_personinorganization_role_status('Student','Applicant');
> ERROR: set-valued function called in context that cannot accept a set
You need to write
select * from lov_personinorganization_role_status('Student','Applicant');
regards, tom lane