pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes.
Date
Msg-id E1csEHj-0001xb-Ap@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve implementation of EEOP_BOOLTEST_* opcodes.

Both Andres and I were happy with "*op->resvalue = *op->resvalue;",
but Coverity isn't; and it has a point, because some compilers might
not be smart enough to elide that.  So remove it.  In passing, also
avoid doing unnecessary assignments to *op->resnull when it's already
known to have the right value.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d77f014efa7eda4357fbc851dbf25c6b256ddf35

Modified Files
--------------
src/backend/executor/execExprInterp.c | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Fix oldhtml/old PDF build
Next
From: Tom Lane
Date:
Subject: pgsql: Fix unportable disregard of alignment requirements in RADIUScod