Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1akxrW-0002gF-CB for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 17:55:30 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1akxrV-0005Bt-R7 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 17:55:29 +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.84_2) (envelope-from ) id 1akxrU-0005Bm-Uj for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 17:55:28 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1akxrO-0000Th-1P for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 17:55:28 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [200.83.202.40]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id E611F400F66; Tue, 29 Mar 2016 10:55:18 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id C364D5B0; Tue, 29 Mar 2016 14:55:16 -0300 (CLT) Date: Tue, 29 Mar 2016 14:55:16 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: Jeff Janes , PostgreSQL Developers Subject: Re: pgbench stats per script & other stuff Message-ID: <20160329175516.GA881582@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.1 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Fabien COELHO wrote: > > >- that it does work:-) I'm not sure what happens by the script selection > > process, it should be checked carefully because it was not designed > > with allowing a zero weight, and it may depend on its/their positions. > > It may already work, but it really needs checking. > > Hmmm, it seems ok. It's not -- if you used -i, it died saying weight is zero. > >- I would suggest that a warning is shown when a weight is zero, > > something like "warning, script #%d weight is zero, will be ignored". > > includes such a warning. I didn't include this part. Pushed. In doing this, I noticed that the latency output is wrong if you use -T instead of -t; it always says the latency is zero because "duration" is zero. I suppose it should be like in the attached instead. At the same time, it says "latency average: XYZ" instead of "latency average = XYZ" as in printSimpleStats, which doesn't look terribly important. But the line appears in the SGML docs. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers