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 1qVZAc-000aM8-7t for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2023 15:07:50 +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 1qVZAa-005Su0-2E for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Aug 2023 15:07:48 +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 1qVZAZ-005Sts-OT for pgsql-hackers@lists.postgresql.org; Mon, 14 Aug 2023 15:07:47 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qVZAT-000751-Qn for pgsql-hackers@postgresql.org; Mon, 14 Aug 2023 15:07:47 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6bc9c01e154so3295719a34.0 for ; Mon, 14 Aug 2023 08:07:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692025660; x=1692630460; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=St1jFkid03pKahSAZeYcnp1VDeM4eVvggzvOd3tj7Y4=; b=QA5mfbevDp/ane+/DopL/h4ZA8hi2KaenrOr3hroCvh7rbMIJkIlToK1ciQTJfdXCQ jNlg5emZBU9SpiX6fdBCRL1r7/pTJv/Ph//XkZdmW76dmNZT02Oy5aFOY1ArWFhbPZwR Rn5UFog4bDlrCUwziCraWBB4bNiMfiBmeKjI0OxVX22G36PBqwiXPEUEegw/aCbXnrvh L/gBSxK5BqmHo1IkzeEI5BOF9byaXmXlqH5Sv7EOfZpwfDLbedvhJyU9WFemt1PuBNQt YxMDTtbhE9ayPOwd9NycMBH/3wUyCmp+7M4SYeKnZpSP3ZVKR+hn0UqQCKDxE5JvFaKo qDBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692025660; x=1692630460; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=St1jFkid03pKahSAZeYcnp1VDeM4eVvggzvOd3tj7Y4=; b=Wil0W7/2AT8hwdrCXUN1BIF5fKBnbGv8V4aHsiAiYg6rn/ryLtjzPlORpeKI5RdIPa iy8IoCrvoAgyt3JOi7HlAfNoQLE73bTglHfLrVGOh5GlOXBIk4sTFN6vwdfFr63n5IJ1 fNQpjgkAFDvyiEOJqKk6RrVamFha91AGw1jPNPTUIKwAfbG+PY+/CD5ZcEfUOihzTbS4 A8Abcrxvd+Sb2PSzdjd/vgSnUaCxyABh+09fWI5F+k2CgJa7cUCzbdMHgGAnAQVuH/yh atAmdAEc4MR3RZXDuj62mA48YRIVWNHPdGqXP/1z9qMt0rjUCtyIziMV9pZKcdKdhbVt YMfA== X-Gm-Message-State: AOJu0YyFSU1h65Ue4Yo3fZegl94nafDVBH4o+zB//NIco2F3aH+rXU+k 05RT4caTCjCRJi4S2Ext9gZtzD/hl8o= X-Google-Smtp-Source: AGHT+IF/g7H2HFuPh2ljt9w/9gSVyh8Hx30zwwMhlQkROv2QNMHO2LRXrSzNc5R9dpe4OCGxqKeBcw== X-Received: by 2002:a05:6808:d4f:b0:3a7:17b6:34f1 with SMTP id w15-20020a0568080d4f00b003a717b634f1mr7996340oik.4.1692025659843; Mon, 14 Aug 2023 08:07:39 -0700 (PDT) Received: from nathanxps13 ([2600:1700:48f8:340f:975:5f03:fc24:ff6c]) by smtp.gmail.com with ESMTPSA id t5-20020a056808158500b003a7cccd33e8sm4600946oiw.5.2023.08.14.08.07.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 08:07:39 -0700 (PDT) Date: Mon, 14 Aug 2023 08:07:37 -0700 From: Nathan Bossart To: Hannu Krosing Cc: pgsql-hackers , Dimitri Fontaine Subject: Re: pgbench - adding pl/pgsql versions of tests Message-ID: <20230814150737.GA1395427@nathanxps13> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Jan 04, 2023 at 07:06:44PM +0100, Hannu Krosing wrote: > 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. In any case, it looks like there is unaddressed feedback for this patch, so I'm marking it as "waiting on author." -- Nathan Bossart Amazon Web Services: https://aws.amazon.com