I\'d like to convert single rows into multiple rows in PostgreSQL, where some of the columns are removed. Here\'s an example of the current output:
name | st
SELECT times.name, x.t, x.val FROM times cross join lateral (values('st',st),('ot',ot),('dt',dt)) as x(t,val) WHERE x.val <> 0;