Re: min,max aggregate functions

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: min,max aggregate functions
Date: 2002-02-27 17:52:13
Message-ID: Pine.GSO.4.44.0202272048170.7901-100000@ra.sai.msu.su
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 27 Feb 2002, Tom Lane wrote:

> Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:
> > AFAIK, it's required to write min(),max() aggregate functions for
> > user-defined types even if compare function is already defined for
> > this type. Is't possible to get these functions working for
> > such user-defined types automatically ?
>
> Doesn't really seem worth the trouble. We'd need some sort of notion
> of a generic aggregate function; and even then, you'd have to tell the
> system what comparison function to use for your datatype.

I was just curious. It's always possible to use 'order by desc limit 1'
for max() function.

So, nobody is working on aggregates.

>
> regards, tom lane
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message mlw 2002-02-27 18:08:10 Re: single task postgresql
Previous Message Tom Lane 2002-02-27 17:47:27 Re: min,max aggregate functions