pgsql: Correct overflow handling in pgbench.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Correct overflow handling in pgbench.
Date: 2018-09-28 05:02:47
Message-ID: E1g5kvP-0006LI-I6@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/92a0342a90b38b0b007f079d33286f9aefabfe40

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml | 7 ++
src/bin/pgbench/exprparse.y | 6 +-
src/bin/pgbench/exprscan.l | 21 +++-
src/bin/pgbench/pgbench.c | 137 +++++++++++++++++++--------
src/bin/pgbench/pgbench.h | 3 +-
src/bin/pgbench/t/001_pgbench_with_server.pl | 42 ++++----
src/bin/pgbench/t/002_pgbench_no_server.pl | 16 ++++
7 files changed, 174 insertions(+), 58 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2018-09-28 11:42:28 pgsql: Fix assertion failure when updating full_page_writes for checkpo
Previous Message Masahiko Sawada 2018-09-28 04:53:14 Re: pgsql: Improve autovacuum logging for aggressive and anti-wraparound ru