pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Correct overflow handling in pgbench.
Date: Fri, 28 Sep 2018 05:02:47 +0000
Message-ID: <E1g5kvP-0006LI-I6@gemulon.postgresql.org> (raw)

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



Message-ID: <E1g5kvP-0006LI-I6@gemulon.postgresql.org>
Permalink:  ../E1g5kvP-0006LI-I6@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g5kvP-0006LI-I6@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Correct overflow handling in pgbench.
  In-Reply-To: <E1g5kvP-0006LI-I6@gemulon.postgresql.org>
  References: <E1g5kvP-0006LI-I6@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox