Re: Seamless replacement to MySQL's GROUP_CONCAT function...

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: "immersive(dot)excel(at)gmail(dot)com" <immersive(dot)excel(at)gmail(dot)com>
Cc: x3v0-pgsql(at)yahoo(dot)com, pgsql-general(at)postgresql(dot)org, David Fetter <david(at)fetter(dot)org>
Subject: Re: Seamless replacement to MySQL's GROUP_CONCAT function...
Date: 2013-08-05 17:04:43
Message-ID: 20130805170442.GA27382@eldon.alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

immersive(dot)excel(at)gmail(dot)com escribió:

> Note: I found some close-but-no cigar aggregates shared online, but
> they would not accept integer arguments, nor would they handle the
> optionally furnished delimiter. People would suggesting casting the
> argument to the pseudo-GROUP_CONCAT. Again: Rewrite perhaps hundreds
> of queries?<br>

I don't think you need all the variations; you should be able to make
them all work with a single set of functions, taking ANYELEMENT instead
of text/int8/int4 etc.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Don Parris 2013-08-05 17:12:36 Connecting Multiple LibreOffice Base Users to a Remote Postgres Database
Previous Message Oleg Bartunov 2013-08-05 16:37:38 Re: [tsearch2] Problem with case sensitivity (or with creating own dictionary)