Re: How to create an aggregate? - Mailing list pgsql-sql

From Tom Lane
Subject Re: How to create an aggregate?
Date
Msg-id 4899.1091235039@sss.pgh.pa.us
Whole thread Raw
In response to How to create an aggregate?  (Ray Aspeitia <aspeitia@sells.com>)
Responses Re: How to create an aggregate?
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Ray Aspeitia
Date:
Subject: How to create an aggregate?
Next
From: Patrice OLIVER
Date:
Subject: Need help form inherits