need help on writing an aggregate function - Mailing list pgsql-hackers

From subhash@nmsu.edu
Subject need help on writing an aggregate function
Date
Msg-id 1100634105.419a57f93657b@webmail.nmsu.edu
Whole thread Raw
Responses Re: need help on writing an aggregate function  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-hackers
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
functions of min or max or avg etc? for a complex type as given in the examples.
Thanks,
subhash. 



pgsql-hackers by date:

Previous
From: "Zeugswetter Andreas DAZ SD"
Date:
Subject: Re: psql \e broken again
Next
From: Tom Lane
Date:
Subject: Re: postmaster segfaults with HUGE table