add postgresql 8.4 retrocompat for string_agg