Maybe I'm a bit of late to answer this question, but I'm working on this subject at my job :)
I wanted to write column 'a_code' = c1,c2,c3,c4...
Firstly I opened a column with the name ref_id
and the type serial
.
Then I solved my problem with this command:
update myschema.mytable set a_code=cast('c'||"ref_id" as text)