pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ray Aspeitia <aspeitia@sells.com>
To: pgsql-sql@postgresql.org
Subject: Re: How to create an aggregate?
Date: Mon, 2 Aug 2004 08:00:44 -0500
Message-ID: <p06002000bd33ea2982b9@[192.168.5.55]> (raw)
In-Reply-To: <4899.1091235039@sss.pgh.pa.us>
References: <p06002001bd3047910697@[192.168.5.55]>
	<4899.1091235039@sss.pgh.pa.us>

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@sells.com
(262) 317-8314



view thread (4+ messages)

Message-ID: <p06002000bd33ea2982b9@[192.168.5.55]>
Permalink:  ../p06002000bd33ea2982b9@%5B192.168.5.55%5D/
Also on:    postgresql.org/message-id/p06002000bd33ea2982b9@[192.168.5.55]

 · 

reply

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: aspeitia@sells.com
  Subject: Re: How to create an aggregate?
  In-Reply-To: <p06002000bd33ea2982b9@[192.168.5.55]>

* 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