Skip site navigation (1) Skip section navigation (2)

Re: Short-circuit boolean evaluation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Johnston <polobo(at)yahoo(dot)com>
Cc: pasman pasmański <pasman(dot)p(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Short-circuit boolean evaluation
Date: 2011-04-30 17:29:36
Message-ID: 454.1304184576@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-general
David Johnston <polobo(at)yahoo(dot)com> writes:
> No. It will not be called
> Or
> No. Postgresql does not short-circuit boolean evaluations
> ?

The correct answer is "maybe".  See
http://www.postgresql.org/docs/9.0/static/sql-expressions.html#SYNTAX-EXPRESS-EVAL

			regards, tom lane

In response to

pgsql-general by date

Next:From: Rob SargentDate: 2011-04-30 18:14:37
Subject: Re: histogram
Previous:From: Joel ReymontDate: 2011-04-30 17:03:34
Subject: Re: histogram

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group