Re: feature request ?

From: "Iain" <iain(at)mst(dot)co(dot)jp>
To: "sad" <sad(at)bankir(dot)ru>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: feature request ?
Date: 2004-06-24 10:32:25
Message-ID: 002201c459d6$8a8ff4a0$7201a8c0@mst1x5r347kymb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> > IF foo IS NULL
> > THEN ...
> > ELSIF foo
> > THEN ...
> > ELSE ...
> > END IF;
>
> here the foo expression woll be executed twice

if you can use an immutable or stable function then the overhead would be
minimal as the system knows that it doesn't need to re-evaluate it.

regards
Iain

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Alexander M. Pravking 2004-06-24 10:32:48 Re: feature request ?
Previous Message Michael Glaesemann 2004-06-24 10:24:38 Re: feature request ?