Wednesday, January 11, 2017

PostgreSQL: split record returned by function into columns

Source: PostgreSQL function or stored procedure that outputs multiple columns?
SELECT a, (func(a)).* FROM table1;