Figure :
I'm sorry I created Google Translation This enables the character to combine? It "," it is separated on the column While merging the col1 and col2 "|" To be separated
Figure :
I'm sorry I created Google Translation This enables the character to combine? It "," it is separated on the column While merging the col1 and col2 "|" To be separated

With following data
You can use PostgreSQL's string functions like below
to get the desired output as
SqlFiddle