Re: BUG #1644: control structeres perfomance in pgsql

From: Klint Gore <kg(at)kgb(dot)une(dot)edu(dot)au>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, tirny <tirny(at)mail(dot)ru>
Subject: Re: BUG #1644: control structeres perfomance in pgsql
Date: 2005-05-04 02:35:55
Message-ID: 4278350B26F.BDCFKG@129.180.47.120
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Wed, 04 May 2005 11:52:32 +1000, Neil Conway <neilc(at)samurai(dot)com> wrote:
> tirny wrote:
> > any code instructions
> > ***
> > IF FOUND AND TG_OP = 'UPDATE' THEN
> > ***
> > END IF;
> > ***
> >
> > if not found plsql does't break this structure after IF FOUND and proceed
> > TG_OP = \'UPDATE\', what bring control structures to:
> > IF FOUND THEN
> > IF TG_OP = 'UPDATE' THEN
> > ***
> > END IF;
> > END IF;
> >
> > inconveniently, isn't it?
>
> I don't understand. Can you explain what the problem is?

I think they mean that it doesn't do short-circuit evaluation.

[to tirny]
If so, see explanation in the documentation at the bottom of
http://www.postgresql.org/docs/8.0/static/sql-expressions.html

klint.

+---------------------------------------+-----------------+
: Klint Gore : "Non rhyming :
: EMail : kg(at)kgb(dot)une(dot)edu(dot)au : slang - the :
: Snail : A.B.R.I. : possibilities :
: Mail University of New England : are useless" :
: Armidale NSW 2351 Australia : L.J.J. :
: Fax : +61 2 6772 5376 : :
+---------------------------------------+-----------------+

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2005-05-04 02:48:29 Re: BUG #1644: control structeres perfomance in pgsql
Previous Message Neil Conway 2005-05-04 01:52:32 Re: BUG #1644: control structeres perfomance in pgsql