[HACKERS] need help on writing an aggregate function

2004-11-16 Thread subhash
hi, I was writing my own data type, and, I have to write aggregare function like min() and max() for my datatype. I googled for the user defined aggregate functions, but I could not find any examples for the sfunc and ffunc. Can any of you provide me the source/structure in C or SQL for these two

Re: [HACKERS] need help on writing an aggregate function

2004-11-16 Thread Bruno Wolff III
On Tue, Nov 16, 2004 at 12:41:45 -0700, [EMAIL PROTECTED] wrote: hi, I was writing my own data type, and, I have to write aggregare function like min() and max() for my datatype. I googled for the user defined aggregate functions, but I could not find any examples for the sfunc and ffunc.

Re: [HACKERS] need help on writing an aggregate function

2004-11-16 Thread David Fetter
On Tue, Nov 16, 2004 at 03:21:44PM -0600, Bruno Wolff III wrote: On Tue, Nov 16, 2004 at 12:41:45 -0700, [EMAIL PROTECTED] wrote: hi, I was writing my own data type, and, I have to write aggregare function like min() and max() for my datatype. I googled for the user defined aggregate