Ben <bench(at)silentmedia(dot)com> writes:
> CREATE or REPLACE FUNCTION Fetch_ArtistSet_By_Artists(integer[]) RETURNS setof integer AS
> 'DECLARE
> ...
> r record;
> ...
> RETURN next r;
I think you probably need "RETURN next r.setID", since r is a record not
an integer. The error message seems kind of unhelpful though :-(
regards, tom lane