I have a table full of records and an array column, and now I want to get a list of all (unique) values in that column. What's the best way of getting that?
I tried playing around with unnest, array_agg and string_agg but didn't get anywhere...
(using Postgres 9.2)