Re: Re: What can I use as a [non-aggregate] minimum function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Paul Wehr <postgresql(at)industrialsoftworks(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: What can I use as a [non-aggregate] minimum function
Date: 2001-12-10 23:40:46
Message-ID: 467.1008027646@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"=?iso-8859-1?Q?Paul_Wehr?=" <postgresql(at)industrialsoftworks(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-12-10 23:53:05 Re: Using Cursor in PostgreSQL 7.2
Previous Message Tom Lane 2001-12-10 23:37:19 Re: Weird problem - possibly a bug.