Re: shortcircuit logic in plpsql - Mailing list pgsql-general

From Tom Lane
Subject Re: shortcircuit logic in plpsql
Date
Msg-id 15179.1153279789@sss.pgh.pa.us
Whole thread Raw
In response to shortcircuit logic in plpsql  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-general
Joseph Shraibman <jks@selectacast.net> writes:
> Does plpgsql not short circuit its logic?

We make no guarantees about evaluation order.  In the particular
case at hand, you're losing because plpgsql has to evaluate all
the variables that it's going to pass into the SQL engine for
that expression.  Break it into two statements ...

            regards, tom lane

pgsql-general by date:

Previous
From: Joseph Shraibman
Date:
Subject: shortcircuit logic in plpsql
Next
From: "vamsee movva"
Date:
Subject: is there any dataware housing tools for postgresql