Re: How to create an aggregate?

From: Ray Aspeitia <aspeitia(at)sells(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to create an aggregate?
Date: 2004-08-02 13:00:44
Message-ID: p06002000bd33ea2982b9@[192.168.5.55]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

So the AGGREGATE function also references parameters like a regular
SQL function. Good to know.

Figured I'd ask anyway. Thanks for the info Tom, Greg.

Ray A.

>
> > 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

--
Ray Aspeitia
Sells Printing Company LLC
aspeitia(at)sells(dot)com
(262) 317-8314

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Kaloyan Iliev Iliev 2004-08-02 15:53:26 Problems with UNION ALL and ORDER BY
Previous Message Michalis Kabrianis 2004-08-02 11:30:47 Sum and count weird results