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