X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5072AD1B1BE for ; Fri, 30 Jul 2004 21:50:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92455-09 for ; Sat, 31 Jul 2004 00:50:44 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 4D304D1B1A1 for ; Fri, 30 Jul 2004 21:50:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6V0oeil004900; Fri, 30 Jul 2004 20:50:40 -0400 (EDT) To: Ray Aspeitia Cc: pgsql-sql@postgresql.org Subject: Re: How to create an aggregate? In-reply-to: References: Comments: In-reply-to Ray Aspeitia message dated "Fri, 30 Jul 2004 13:46:36 -0500" Date: Fri, 30 Jul 2004 20:50:39 -0400 Message-ID: <4899.1091235039@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/245 X-Sequence-Number: 18497 Ray Aspeitia writes: > I also would like to pass the delimiter to the aggregate as a parameter > and I am not sure if it can handle that. It can't. You'll need a single-argument finalfunc that hardwires the delimiter, ie, array_to_string($1, '|') regards, tom lane