"=?iso-8859-1?Q?Paul_Wehr?=" <postgresql@industrialsoftworks.com> writes:
> Since you didn't volunteer "just use not_aggregate_max()", I'm assuming
> there's no built-in thing, so the follow-up question(s) would be:
> 1) can a function be defined with a variable number of arguments
No, although sometimes you can fake it by defining a family of functions
with the same name and different numbers of arguments.
> 2) can a function be created that calls itself (i.e. recursive)
Sure, although I don't see how that helps in this case.
> 3) can you do it for me? :)
Nope, got too many things to do already...
regards, tom lane