Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group