On Fri, Jul 16, 2010 at 18:04, Daniel Grace <dgrace(at)wingsnw(dot)com> wrote:
> However, in some circumstances Postgres will fail
How exactly?
this is what I get:
=> SELECT STRING_AGG(DISTINCT t::text order by t::text) FROM foo;
string_agg
------------
abc
(1 row)
=> SELECT STRING_AGG(DISTINCT t::text order by t::text desc) FROM foo;
string_agg
------------
cba
(1 row)
Maybe its so obvious I missed it?