pgsql: Improve implementation of EEOP_BOOLTEST_* opcodes.

Started by Tom Laneover 9 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

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(-)

--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers