pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: steven.winfield@cantabcapital.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15228: pgbench custom script numbering off-by-one
Date: Mon, 04 Jun 2018 16:00:35 -0400
Message-ID: <6240.1528142435@sss.pgh.pa.us> (raw)
In-Reply-To: <152812306193.26720.11550263673951064628@wrigleys.postgresql.org>
References: <152812306193.26720.11550263673951064628@wrigleys.postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> There's an off-by-one error in script numbering in the human readable vs.
> machine readable logs, i.e.:
> ...
> In the human readable output the scripts are numbered 1 and 2:
> ...
> ...but in the 4th column of the log files written by pgbench they are
> numbered 0 and 1:

Hmm, yeah, it's inconsistent, but I wonder whether it's worth the pain
to fix.  I'd be quite hesitant to change the log output because that'd
likely break peoples' analysis scripts.  So possibly we could resolve
it by using 0-based numbering in the human-readable output, but that
would confuse things too perhaps.

Maybe we should just document it.

			regards, tom lane




view thread (4+ messages)  latest in thread

Message-ID: <6240.1528142435@sss.pgh.pa.us>
Permalink:  ../6240.1528142435@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6240.1528142435@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, steven.winfield@cantabcapital.com
  Subject: Re: BUG #15228: pgbench custom script numbering off-by-one
  In-Reply-To: <6240.1528142435@sss.pgh.pa.us>
  References: <152812306193.26720.11550263673951064628@wrigleys.postgresql.org> <6240.1528142435@sss.pgh.pa.us>

* 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