Re: min/max (was: The Contrib Roundup)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: min/max (was: The Contrib Roundup)
Дата
Msg-id 2501.1118611845@sss.pgh.pa.us
обсуждение исходный текст
Ответ на min/max (was: The Contrib Roundup)  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-hackers
"Jim C. Nasby" <decibel@decibel.org> writes:
> What about just adding max(x,y) and min(x,y) to the system functions?

There's already a patch in the queue to do these using the Oracle
spellings (ie, GREATEST(...), LEAST(...)).  ISTM that those are
better choices of name, because (a) they are a de facto standard,
and (b) they don't invite confusion with the max() and min() aggregates,
which do something significantly different.
        regards, tom lane


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