Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHaRv-0001C0-Dd for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jul 2015 16:31:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHaRu-0003br-W9 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Jul 2015 16:31:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHaQd-00023s-3N for pgsql-hackers@postgresql.org; Tue, 21 Jul 2015 16:30:03 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZHaQZ-0005tS-Tn for pgsql-hackers@postgresql.org; Tue, 21 Jul 2015 16:30:01 +0000 Received: from cri.ensmp.fr (93-35-198-203.ip56.fastwebnet.it [93.35.198.203]) (authenticated bits=0) by jiboia.ensmp.fr (8.15.1/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id t6LGTtCv006352 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Jul 2015 18:29:56 +0200 Date: Tue, 21 Jul 2015 18:29:55 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Robert Haas 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; charset=US-ASCII; format=flowed X-Miltered: at jiboia.ensmp.fr with ID 55AE7383.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: 55AE7383.000 from 93-35-198-203.ip56.fastwebnet.it/93-35-198-203.ip56.fastwebnet.it/93.35.198.203/cri.ensmp.fr/ X-Pg-Spam-Score: -3.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 5~5~5~ >>> That is a truly horrifying abuse of command-line arguments. -1 from >>> me, or minus more than one if I've got that many chits to burn. >> >> Are you against the -w, or against saying that pgbench execute scripts, >> whether internal or from files? > > I'm against the idea that we accept multiple arguments for scripts, Pgbench *currently* already accept multiple "-f ..." options, and this is a good thing to test realistic loads which may intermix several kind of transactions, say a lot of readonly and some update or insert, and very rare deletes... Now if you do not need it you do not use it, and all is fine. Once you have several scripts, being able to "weight" them becomes useful for realism. > and that a subsequent -w modifies the meaning of the script-specifiying > argument already read. That strikes me as a very unintuitive interface. Ok, I understand this "afterward modification" objection. What if the -w would be required *before*, and supply a weight for (the first/maybe all) script(s) specified *afterwards*, so it does not modify something already provided? I think it would be more intuitive, or at least less surprising. > I'm not sure exactly what would be better at the moment, but I think we > need something better. Maybe -f file.sql:weight (yuk from my point of view, but it can be done easily). -- Fabien. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers