Re: Short-circuit boolean evaluation
От | David Johnston |
---|---|
Тема | Re: Short-circuit boolean evaluation |
Дата | |
Msg-id | 171423D4-9229-4D56-B06B-58D29BB50A77@yahoo.com обсуждение исходный текст |
Ответ на | Re: Short-circuit boolean evaluation (pasman pasmański <pasman.p@gmail.com>) |
Ответы |
Re: Short-circuit boolean evaluation
Re: Short-circuit boolean evaluation |
Список | pgsql-general |
No. It will not be called
Or
No. Postgresql does not short-circuit boolean evaluations
?
On Apr 30, 2011, at 10:27, pasman pasmański <pasman.p@gmail.com> wrote:
Or
No. Postgresql does not short-circuit boolean evaluations
?
On Apr 30, 2011, at 10:27, pasman pasmański <pasman.p@gmail.com> wrote:
No.
2011/4/30, Jon Smark <jon.smark@yahoo.com>:Hi,Does Postgresql perform short-circuit boolean evaluation both in SQLand 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
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления: