Programming with PLPGSQL:
*
RETURNS Block
Options for returning in a PL/pgSQL function:
Datatype List of all datatypes
Table(column_name column_type, ...)
Setof 'Datatype' or 'table_column'