Re: minimum function

From: Gunther Mayer <gunther(dot)mayer(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: minimum function
Date: 2007-06-25 17:02:42
Message-ID: 467FF532.3000804@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Gunther Mayer <gunther(dot)mayer(at)googlemail(dot)com> writes:
>
>> SELECT minimum(5,6) => 5
>>
>
> You're looking for the least/greatest functions (in 8.1 and up IIRC).
>
> regards, tom lane
>
Awesome, that's exactly what I was looking for. My pl/pgsql minimum()
hack is gonna go in the dumpster now ;-)

Thanks so much guys.

Gunther

P.S.: Can't believe I didn't spot that in the documentation, that's what
happens in the rare cases of using the wrong search terms...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message manchicken 2007-06-25 17:10:37 Re: another simple SQL question
Previous Message Manuel Sugawara 2007-06-25 16:47:26 Re: permission denied for schema