string_agg ( value text, delimiter text ) → textConcatenates the non-null input values into a string. Each value after the first is preceded by the corresponding
delimiter (if it's not null).Functions / Aggregate Functions
Concatenates the non-null input values into a string.
Reading PG 18current·documented in 18 of 27 versions, 9.0 to 20
string_agg ( value text, delimiter text ) → textConcatenates the non-null input values into a string. Each value after the first is preceded by the corresponding
delimiter (if it's not null).string_agg ( value bytea, delimiter bytea ORDER BY input_sort_columns ) → byteaConcatenates the non-null input values into a string. Each value after the first is preceded by the corresponding
delimiter (if it's not null).Definition snapshot: b7bd9cda · English manual source