> > This works fine, but I'm trying to avoid building a
> specific type for
> > each row returning function.
> > Is there any other solution (SQL or PLPGSQL)?
>
> Yes, return setof record, look at this site, it helped me a lot.
>
> http://techdocs.postgresql.org/guides/SetReturningFunctions
>
Thank you Miguel and Otto.
RECORD did the trick :-)
-- Hervé Inisan.