I know that postgres does not have group_concat, but I want to emulate it for strings by using string_agg (or any other way that works).
I need to have the function called group_concat because of an inability to change legacy code.
How can I do this?
For what its worth, I also tried implementing group_concat
using regular concat, and ran into an error there as well:
CREATE AGGREGATE group_concat (text) (sfunc = concat, stype=text)
error:
"function concat(text,text) does not exist"