BUG #6674: functon aggregat

From: shinsetsusan(at)yahoo(dot)fr
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6674: functon aggregat
Date: 2012-06-03 09:56:45
Message-ID: E1Sb7YD-0002DF-IT@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 6674
Logged by: susan
Email address: shinsetsusan(at)yahoo(dot)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;

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2012-06-03 15:54:29 Re: BUG #6672: Memory leaks in dumputils.c
Previous Message Tom Lane 2012-06-02 17:50:54 Re: BUG #6673: Value out of range for type integer when adding WHERE clause