grupos wrote:
> Hi Richard,
>
> Thanks for your promptly answer. I don't have experience returning
> refcursor but my choice would be it.
>
> I read the documentation but I didn't find any example with my necessity...
http://www.postgresql.org/docs/8.1/static/plpgsql-cursors.html#PLPGSQL-CURSOR-USING
See the example in "returning cursors"
--
Richard Huxton
Archonet Ltd