need help on writing an aggregate function

Поиск
Список
Период
Сортировка
От subhash@nmsu.edu
Тема need help on writing an aggregate function
Дата
Msg-id 1100634105.419a57f93657b@webmail.nmsu.edu
обсуждение исходный текст
Ответы Re: need help on writing an aggregate function  (Bruno Wolff III <bruno@wolff.to>)
Список 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 по дате отправления:

Предыдущее
От: "Zeugswetter Andreas DAZ SD"
Дата:
Сообщение: Re: psql \e broken again
Следующее
От: Tom Lane
Дата:
Сообщение: Re: postmaster segfaults with HUGE table