Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXQZk-0004C4-Db for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2015 09:12:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZXQZj-0004cZ-D8 for pgsql-hackers@arkaria.postgresql.org; Thu, 03 Sep 2015 09:12:55 +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) (envelope-from ) id 1ZXQYQ-00039n-Ua for pgsql-hackers@postgresql.org; Thu, 03 Sep 2015 09:11:35 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZXQYJ-0001IJ-JX for pgsql-hackers@postgresql.org; Thu, 03 Sep 2015 09:11:34 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id 832A7860002; Thu, 3 Sep 2015 11:11:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p54AF4EF5.dip0.t-ipconnect.de [84.175.78.245]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 89817860001; Thu, 3 Sep 2015 11:11:23 +0200 (CEST) Received: by anarazel.de (Postfix, from userid 1000) id D49A3104CA9; Thu, 3 Sep 2015 11:11:22 +0200 (CEST) Date: Thu, 3 Sep 2015 11:11:22 +0200 From: Andres Freund To: Fabien COELHO Cc: Robert Haas , Josh Berkus , "pgsql-hackers@postgresql.org" Subject: Re: pgbench stats per script & other stuff Message-ID: <20150903091122.GA23957@awork2.anarazel.de> References: <55AFD8C6.8010507@agliodbs.com> <20150902172617.GJ5286@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.2 (----) 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 On 2015-09-02 20:20:45 +0200, Fabien COELHO wrote: > >>+static SQLScript sql_script[MAX_SCRIPTS]; > >> > >>+static struct { > >>+ char *name; /* very short name for -b ...*/ > >>+ char *desc; /* short description */ > >>+ char *script; /* actual pgbench script */ > >>+} builtin_script[] > > > >Can't we put these in the same array? > > I do not understand. Right now builtins and user defined scripts are stored in different data structures. I'd rather see them in the same. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers