Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahX2h-00036g-Dz for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Mar 2016 06:40:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ahX2g-0002Nw-Cr for pgsql-hackers@arkaria.postgresql.org; Sun, 20 Mar 2016 06:40:50 +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 1ahX1K-0000pI-AM for pgsql-hackers@postgresql.org; Sun, 20 Mar 2016 06:39:26 +0000 Received: from boipeva.ensmp.fr ([194.214.158.136]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahX1G-0003wo-KG for pgsql-hackers@postgresql.org; Sun, 20 Mar 2016 06:39:24 +0000 Received: from cri.ensmp.fr (152.200.219.88.rev.sfr.net [88.219.200.152]) (authenticated bits=0) by boipeva.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id u2K6dJio017081 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 20 Mar 2016 07:39:20 +0100 Date: Sun, 20 Mar 2016 07:39:16 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@sto To: Jeff Janes cc: PostgreSQL Developers Subject: Re: pgbench stats per script & other stuff In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Miltered: at boipeva.ensmp.fr with ID 56EE4597.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 56EE4597.000 from 152.200.219.88.rev.sfr.net/152.200.219.88.rev.sfr.net/88.219.200.152/cri.ensmp.fr/ X-Pg-Spam-Score: -1.9 (-) 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 Hello Jeff, > So I wanted to do something like: > > for f in `seq 0 5 100`; do > pgbench -T 180 -c8 -j8 -b tpcb-like@$f -b select-only@100 > done; > > But, I'm not allowed to specify a weight of zero. Indeed. I did not envision such a use case, but it is quite legitimate and interesting! I would hope that the behavior would be a linear combination of the raw performance of each script, but whether it is indeed the case is not that sure. > Would this be a welcome change? Speaking for myself, I would be fine with such a change, provided: - 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. - I would suggest that a warning is shown when a weight is zero, something like "warning, script #%d weight is zero, will be ignored". - the documentation should be updated:-) -- Fabien -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers