X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id AE37BEFF7E for ; Sun, 8 Jun 2003 11:34:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 27802-10 for ; Sun, 8 Jun 2003 11:34:22 +0000 (GMT) Received: from wolff.to (wolff.to [66.93.249.74]) by svr1.postgresql.org (Postfix) with SMTP id C7358EFFF1 for ; Sun, 8 Jun 2003 11:34:21 +0000 (GMT) Received: (qmail 14443 invoked by uid 500); 8 Jun 2003 11:37:02 -0000 Date: Sun, 8 Jun 2003 06:37:02 -0500 From: Bruno Wolff III To: Michael A Nachbaur Cc: pgsql-sql@postgresql.org Subject: Re: "Join" on delimeter aggregate query Message-ID: <20030608113702.GC14337@wolff.to> Mail-Followup-To: Michael A Nachbaur , pgsql-sql@postgresql.org References: <200306061003.29430.mike@nachbaur.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306061003.29430.mike@nachbaur.com> User-Agent: Mutt/1.5.4i X-Archive-Number: 200306/60 X-Sequence-Number: 13818 On Fri, Jun 06, 2003 at 10:03:29 -0700, Michael A Nachbaur wrote: > > Postfix can deliver to multiple targets, if you separate the targets with > comas, like so: > > Source Target > joe@bob.org address1@bob.org,address2@bob.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.