Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPveo-00041p-Nc for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jun 2018 20:00:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fPven-0001eS-B6 for pgsql-bugs@arkaria.postgresql.org; Mon, 04 Jun 2018 20:00:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPven-0001eJ-4u for pgsql-bugs@lists.postgresql.org; Mon, 04 Jun 2018 20:00:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fPvek-0008Qj-G0 for pgsql-bugs@lists.postgresql.org; Mon, 04 Jun 2018 20:00:44 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w54K0ZY8006241; Mon, 4 Jun 2018 16:00:35 -0400 From: Tom Lane To: steven.winfield@cantabcapital.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15228: pgbench custom script numbering off-by-one In-reply-to: <152812306193.26720.11550263673951064628@wrigleys.postgresql.org> References: <152812306193.26720.11550263673951064628@wrigleys.postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Mon, 04 Jun 2018 14:37:41 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6239.1528142435.1@sss.pgh.pa.us> Date: Mon, 04 Jun 2018 16:00:35 -0400 Message-ID: <6240.1528142435@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= 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