Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qVolm-001IJK-6V for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Aug 2023 07:47:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qVolk-00C2yA-Uv for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Aug 2023 07:47:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qVolk-00C2y0-LE for pgsql-hackers@lists.postgresql.org; Tue, 15 Aug 2023 07:47:12 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qVolh-000F8v-Qo for pgsql-hackers@postgresql.org; Tue, 15 Aug 2023 07:47:12 +0000 Received: from genua (113x39x105x210.ap113.ftth.ucom.ne.jp [113.39.105.210]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id C2E1BC00D4; Tue, 15 Aug 2023 09:51:48 +0200 (CEST) Date: Tue, 15 Aug 2023 09:46:59 +0200 (CEST) From: Fabien COELHO To: Nathan Bossart cc: Hannu Krosing , pgsql-hackers , Dimitri Fontaine Subject: Re: pgbench - adding pl/pgsql versions of tests In-Reply-To: <20230814150737.GA1395427@nathanxps13> Message-ID: References: <20230814150737.GA1395427@nathanxps13> 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 Nathan, >> 1. so I don't have to create the script and function manually each >> time I want to test mainly the database (instead of the >> client-database system) >> >> 2. so that new users of PostgreSQL can easily see how much better OLTP >> workloads perform when packaged up as a server-side function > > I'm not sure we should add micro-optimized versions of the existing scripts > to pgbench. Your point about demonstrating the benefits of server-side > functions seems reasonable, but it also feels a bit like artifically > improving pgbench numbers. I think I'd rather see some more variety in the > built-in scripts so that folks can more easily test a wider range of common > workloads. Perhaps this could include a test that is focused on > server-side functions. ISTM that your argument suggests to keep the tpcb-like PL/pgSQL version. It is the more beneficial anyway as it merges 4/5 commands in one call, so it demonstrate the effect of investing in this kind of approach. I'm unclear about what variety of scripts that could be provided given the tables made available with pgbench. ISTM that other scenari would involve both an initialization and associated scripts, and any proposal would be bared because it would open the door to anything. > In any case, it looks like there is unaddressed feedback for this patch, so > I'm marking it as "waiting on author." Indeed. -- Fabien.