In select I have used array_to_string like this (example)
array_to_string(array_agg(tag_name),';') tag_names
I got resulting string "tag1;tag2;tag3;..."
but I would like to get resulting string as "'tag1';'tag2';'tag3';..."
.
How can I do this in Postgres?