SQL function return-type: TABLE vs SETOF records SQL function return-type: TABLE vs SETOF records sql sql