Postgresql Function Return Rowset In Sql