select array_to_string(
array(select name from tbl_user), ',');

group concat in postgresql