I'm looking for a postgresql function that will do the opposite of string_agg
.
I have a movies table where the tags column contains values such as
Action|Adventure|Drama|Horror|Sci-Fi
Action|Horror|Sci-Fi
I would like to get a distinct list of tags from this column, for example
Action
Adventure
Drama
Horror
Sci-Fi