I am getting error for below query. Basically to use || & distinct together.
select string_agg( 'pre' || distinct user.col, 'post')
It works fine like this
select string_agg( 'pre' || user.col, 'post')
& this
select string_agg(distinct user.col, 'post')