pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pgbench: Report errors during run better
Date: Mon, 15 Oct 2018 08:36:27 +0000
Message-ID: <E1gByMV-0004QG-A1@gemulon.postgresql.org> (raw)

pgbench: Report errors during run better

When an error occurs during a benchmark run, exit with a nonzero exit
code and write a message at the end.  Previously, it would just print
the error message when it happened but then proceed to print the run
summary normally and exit with status 0.  To still allow
distinguishing setup from run-time errors, we use exit status 2 for
the new state, whereas existing errors during pgbench initialization
use exit status 1.

Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5b75a4f8266a4f187a47929fed0582ee778c703f

Modified Files
--------------
doc/src/sgml/ref/pgbench.sgml                | 12 ++++++
src/bin/pgbench/pgbench.c                    | 11 +++++-
src/bin/pgbench/t/001_pgbench_with_server.pl | 57 ++++++++++++++--------------
3 files changed, 51 insertions(+), 29 deletions(-)



Message-ID: <E1gByMV-0004QG-A1@gemulon.postgresql.org>
Permalink:  ../E1gByMV-0004QG-A1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gByMV-0004QG-A1@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: peter_e@gmx.net
  Subject: Re: pgsql: pgbench: Report errors during run better
  In-Reply-To: <E1gByMV-0004QG-A1@gemulon.postgresql.org>
  References: <E1gByMV-0004QG-A1@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