Re: "Join" on delimeter aggregate query

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Michael A Nachbaur <mike(at)nachbaur(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: "Join" on delimeter aggregate query
Date: 2003-06-08 11:37:02
Message-ID: 20030608113702.GC14337@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Jun 06, 2003 at 10:03:29 -0700,
Michael A Nachbaur <mike(at)nachbaur(dot)com> wrote:
>
> Postfix can deliver to multiple targets, if you separate the targets with
> comas, like so:
>
> Source Target
> joe(at)bob(dot)org address1(at)bob(dot)org,address2(at)bob(dot)org,....
>
> What I would like to do, is something like the following (I know I'd need to
> group the query, but you get the idea):
>
> Select DISTINCT(Source), JOIN(Target, ',') FROM Aliases
>
> Is there any way this can be done with Postfix?

You could write an aggregate function to concatenate email addresses with
comma separators.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Ian Barwick 2003-06-08 11:54:17 Re: Elegant SQL solution:
Previous Message Bruno Wolff III 2003-06-08 11:11:13 Re: How to make a IN without a table... ?