pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: shinsetsusan@yahoo.fr
To: pgsql-bugs@postgresql.org
Subject: BUG #6674: functon aggregat
Date: Sun, 03 Jun 2012 09:56:45 +0000
Message-ID: <E1Sb7YD-0002DF-IT@wrigleys.postgresql.org> (raw)

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; 




view thread (2+ messages)  latest in thread

Message-ID: <E1Sb7YD-0002DF-IT@wrigleys.postgresql.org>
Permalink:  ../E1Sb7YD-0002DF-IT@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1Sb7YD-0002DF-IT@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: shinsetsusan@yahoo.fr
  Subject: Re: BUG #6674: functon aggregat
  In-Reply-To: <E1Sb7YD-0002DF-IT@wrigleys.postgresql.org>
  References: <E1Sb7YD-0002DF-IT@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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