Correct overflow handling in pgbench.
Andres Freund <andres@anarazel.de>
Correct overflow handling in pgbench. This patch attempts, although it's quite possible there are a few holes, to properly detect and reported signed integer overflows in pgbench. Author: Fabien Coelho Reviewed-By: Andres Freund Discussion: https://postgr.es/m/20171212052943.k2hlckfkeft3eiio@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pgbench.sgml | modified | +7 −0 |
| src/bin/pgbench/exprparse.y | modified | +5 −1 |
| src/bin/pgbench/exprscan.l | modified | +18 −3 |
| src/bin/pgbench/pgbench.c | modified | +100 −37 |
| src/bin/pgbench/pgbench.h | modified | +2 −1 |
| src/bin/pgbench/t/001_pgbench_with_server.pl | modified | +26 −16 |
| src/bin/pgbench/t/002_pgbench_no_server.pl | modified | +16 −0 |
Documentation touched
Discussion
- pgbench's expression parsing & negative numbers 17 messages · 2017-12-12 → 2018-09-28