Re: BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo)
Date
Msg-id 19293.1279482033@sss.pgh.pa.us
Whole thread Raw
In response to BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo)  ("Daniel Grace" <dgrace@wingsnw.com>)
List pgsql-bugs
"Daniel Grace" <dgrace@wingsnw.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: auto-explain does not work with JSON & csvlog
Next
From: Tom Lane
Date:
Subject: Re: auto-explain does not work with JSON & csvlog