Re: min/max (was: The Contrib Roundup) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: min/max (was: The Contrib Roundup)
Date
Msg-id 2501.1118611845@sss.pgh.pa.us
Whole thread Raw
In response to min/max (was: The Contrib Roundup)  ("Jim C. Nasby" <decibel@decibel.org>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: The Contrib Roundup (long)
Next
From: "Marc G. Fournier"
Date:
Subject: Re: The Contrib Roundup (long)