| From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
|---|---|
| To: | Gunther Mayer <gunther(dot)mayer(at)googlemail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: minimum function |
| Date: | 2007-06-23 16:49:19 |
| Message-ID: | 20070623164919.GF11248@svana.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Sat, Jun 23, 2007 at 06:17:03PM +0200, Gunther Mayer wrote:
> Hi there,
>
> I'm busy writing a trigger function in pl/pgsql and find myself in need
> of a minimum() function. I can't see how the builtin min() aggregate
> function can be of any use here since all I want to do is something like
>
> SELECT minimum(5,6) => 5
There are the functions int4larger/int4smaller. There are equivalent
function for other types.
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2007-06-23 16:53:41 | Re: minimum function |
| Previous Message | PFC | 2007-06-23 16:48:35 | Re: minimum function |