pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #6674: functon aggregat
2+ messages / 2 participants
[nested] [flat]

* BUG #6674: functon aggregat
@ 2012-06-03 09:56  shinsetsusan@yahoo.fr
  0 siblings, 1 reply; 2+ messages in thread

From: shinsetsusan@yahoo.fr @ 2012-06-03 09:56 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      6674
Logged by:          susan
Email address:      shinsetsusan@yahoo.fr
PostgreSQL version: 9.1.3
Operating system:   windows vista 64b
Description:        

Hi,
when i use string_agg without DISTINCT, this function return somes empty
aggregate row result But not with DISTINCT.
To reproduce it, use Geoname database from geonames.org with this request

SELECT iso, string_agg(DISTINCT fcode, ',') as n
  FROM "GeoNames" WHERE fcode LIKE 'ADM%' GROUP BY iso ORDER BY iso ASC; 




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #6674: functon aggregat
@ 2012-06-08 15:35  Robert Haas <robertmhaas@gmail.com>
  parent: shinsetsusan@yahoo.fr
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Haas @ 2012-06-08 15:35 UTC (permalink / raw)
  To: shinsetsusan@yahoo.fr; +Cc: pgsql-bugs

On Sun, Jun 3, 2012 at 5:56 AM,  <shinsetsusan@yahoo.fr> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      6674
> Logged by:          susan
> Email address:      shinsetsusan@yahoo.fr
> PostgreSQL version: 9.1.3
> Operating system:   windows vista 64b
> Description:
>
> Hi,
> when i use string_agg without DISTINCT, this function return somes empty
> aggregate row result But not with DISTINCT.
> To reproduce it, use Geoname database from geonames.org with this request
>
> SELECT iso, string_agg(DISTINCT fcode, ',') as n
>  FROM "GeoNames" WHERE fcode LIKE 'ADM%' GROUP BY iso ORDER BY iso ASC;

It's not clear how the behavior that you're getting is different from
what you expect.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2012-06-08 15:35 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-06-03 09:56 BUG #6674: functon aggregat shinsetsusan@yahoo.fr
2012-06-08 15:35 ` Robert Haas <robertmhaas@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox