Re: pl/pgsql short circuit evaluation?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: david(at)gardnerit(dot)net
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pl/pgsql short circuit evaluation?
Date: 2009-02-26 19:56:50
Message-ID: 2341.1235678210@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

david(at)gardnerit(dot)net writes:
> First does pl/pgSQL do short circuit evaluation?

Not in the sense you're looking for. The entire IF expression is passed
to the evaluator at once and all the plpgsql-level variables in it have
to be available at the start.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Yuichi Tanaka 2009-02-27 00:42:37 Unable to open large object.
Previous Message david 2009-02-26 19:15:56 pl/pgsql short circuit evaluation?