From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ray Aspeitia <aspeitia@sells.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to create an aggregate?
Date: Fri, 30 Jul 2004 20:50:39 -0400
Message-ID: <4899.1091235039@sss.pgh.pa.us> (raw)
In-Reply-To: <p06002001bd3047910697@[192.168.5.55]>
References: <p06002001bd3047910697@[192.168.5.55]>
Ray Aspeitia <aspeitia@sells.com> 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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, aspeitia@sells.com
Subject: Re: How to create an aggregate?
In-Reply-To: <4899.1091235039@sss.pgh.pa.us>
* 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