Does Postgres have a function to transform an array into a single value? For example, I'd like to do something like:
reduce(ARRAY['one','two']) -> onetwo, or even better: reduce(ARRAY['one','two], ', ') -> one, two
If not, how would I go about implementing that in my query. I know of unnest, but that just gives me one row per array element
array_to_string()? postgresql.org/docs/current/static/functions-array.html