Improve implementation of EEOP_BOOLTEST_* opcodes.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 19:57:02 +0000 (15:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 26 Mar 2017 19:57:02 +0000 (15:57 -0400)
commitd77f014efa7eda4357fbc851dbf25c6b256ddf35
treeda3c05889a9de9400b1a5027dd0273e609080c87
parente259e1f748c7a6d67e307a90d6c27b8ab8b90df8
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.
src/backend/executor/execExprInterp.c