Re: feature request ? - Mailing list pgsql-sql

From Iain
Subject Re: feature request ?
Date
Msg-id 002201c459d6$8a8ff4a0$7201a8c0@mst1x5r347kymb
Whole thread Raw
In response to feature request ?  (sad <sad@bankir.ru>)
List 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




pgsql-sql by date:

Previous
From: "Alexander M. Pravking"
Date:
Subject: Re: feature request ?
Next
From: sad
Date:
Subject: Re: feature request ?