Postgresql Create Function Returns Setof