Postgresql GROUP_CONCAT equivalent? May 2, 2022 by Tarik Since 9.0 this is even easier: SELECT id, string_agg(some_column, ',') FROM the_table GROUP BY id