Re: min,max aggregate functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: min,max aggregate functions
Дата
Msg-id 29475.1014832047@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: min,max aggregate functions  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.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.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jean-Paul ARGUDO
Дата:
Сообщение: Re: Oracle vs PostgreSQL in real life
Следующее
От: Greg Copeland
Дата:
Сообщение: Re: single task postgresql