For Example let's take The quick brown fox jumps over the lazy dog is the string.
In this string I need to append _ instead of spaces in between two words and append word tag: in front of each word.
i.etag:The_tag:quick_tag:brown_tag:fox_tag:jumps_tag:over_tag:the_tag:lazy_tag:dog
How to do this with Postgresql
I've tried
select replace('The quick brown fox jumps over the lazy dog', ' ', '_')