"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