Re: BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Daniel Grace" <dgrace(at)wingsnw(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo)
Date: 2010-07-18 19:40:33
Message-ID: 19293.1279482033@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Daniel Grace" <dgrace(at)wingsnw(dot)com> writes:
> This test case fails with the above error:

> CREATE TABLE foo (
> t VARCHAR
> );

> INSERT INTO foo (t) VALUES ('a'), ('a'), ('b'), ('b'), ('c');

> SELECT STRING_AGG(DISTINCT t ORDER BY t) FROM foo;

I've applied a patch for this. Thanks for the report!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-07-18 22:19:45 Re: auto-explain does not work with JSON & csvlog
Previous Message Tom Lane 2010-07-18 16:02:23 Re: auto-explain does not work with JSON & csvlog