Thread: Can a PL/pgSQL function return a set of rows?

Can a PL/pgSQL function return a set of rows?

From
Fran Fabrizio
Date:
Hello,

Can a PL/pgSQL function return a set of rows?  I don't know of any data
structure that would be capable of holding multiple rows and I don't see
any examples of this in the user's manual, but since SQL functions can
do it I figure there's got to be a way with PL/pgSQL too, right?

Thanks,
Fran