Re: Short-circuit boolean evaluation - Mailing list pgsql-general

From pasman pasmański
Subject Re: Short-circuit boolean evaluation
Date
Msg-id BANLkTimuc4=Scmw7b11q5ztbHXqLT9KTgQ@mail.gmail.com
Whole thread Raw
In response to Short-circuit boolean evaluation  (Jon Smark <jon.smark@yahoo.com>)
Responses Re: Short-circuit boolean evaluation
List pgsql-general
No.

2011/4/30, Jon Smark <jon.smark@yahoo.com>:
> Hi,
>
> Does Postgresql perform short-circuit boolean evaluation both in SQL
> and PL/pgSQL functions?  As an example, suppose I have a function called
> "do_stuff" which is computationally intensive.  In the example below,
> will it be called for rows for which the first predicate (foobar.id = $1)
> is false?
>
> SELECT count(*) FROM foobar WHERE foobar.id = $1 AND do_stuff (foobar.name);
>
> Thanks!
> Jon
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>


--
------------
pasman

pgsql-general by date:

Previous
From: Jon Smark
Date:
Subject: Short-circuit boolean evaluation
Next
From: David Johnston
Date:
Subject: Re: Short-circuit boolean evaluation