Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFEv9-00042N-Fc for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Jan 2023 13:44:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFEv8-0004O1-8x for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Jan 2023 13:44:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFEv7-0004Nr-Vi for pgsql-hackers@lists.postgresql.org; Tue, 10 Jan 2023 13:44:05 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFEv4-00005w-IT for pgsql-hackers@postgresql.org; Tue, 10 Jan 2023 13:44:04 +0000 Received: from genua.cri.ensmp.fr (genua.cri.ensmp.fr [10.2.14.62]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 90DD6C0149; Tue, 10 Jan 2023 14:48:45 +0100 (CET) Date: Tue, 10 Jan 2023 14:43:58 +0100 (CET) From: Fabien COELHO To: Hannu Krosing cc: pgsql-hackers , Dimitri Fontaine Subject: Re: pgbench - adding pl/pgsql versions of tests In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, > The attached patch adds pl/pgsql versions of "tpcb-like" and > "simple-update" internal test scripts Why not, it makes sense because it is relevant to some usage patterns. Why not having the select version as a version as well? If we are going to follow this road, we could also consider "combined" queries with \; as well? > $ pgbench -b list > Available builtin scripts: > tpcb-like: > plpgsql-tpcb-like: > simple-update: > plpgsql-simple-update: > select-only: > > which one can run using the -b / --builtin= option ISTM that the -b had a fast selection so that only a prefix was enough to select a script (-b se = -b select-only). Maybe such convenient shortcut should be preserved, it seems that the long name will be needed for the pl versions. > And a flag --no-functions which lets you not to create the functions at init Hmmm. Not so sure. > there are also character flags to -I / --init , > -- Y to drop the functions and > -- y to create the functions. Creating is default behaviour, but can > be disabled fia long flag --no-functions ) Ok. > I selected Yy as they were unused and can be thought of as "inverted > lambda symbol" :) :-) > If there are no strong objections, I'll add it to the commitfest as well Please do that. -- Fabien Coelho.