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 1rWArI-003xu5-I8 for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Feb 2024 07:54:41 +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 1rWArE-000muG-Ao for pgsql-hackers@arkaria.postgresql.org; Sat, 03 Feb 2024 07:54:36 +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 1rWArD-000mu8-Uh for pgsql-hackers@lists.postgresql.org; Sat, 03 Feb 2024 07:54:36 +0000 Received: from mail-qt1-x834.google.com ([2607:f8b0:4864:20::834]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rWAr9-005DaO-1i for pgsql-hackers@postgresql.org; Sat, 03 Feb 2024 07:54:34 +0000 Received: by mail-qt1-x834.google.com with SMTP id d75a77b69052e-428405a0205so119351cf.1 for ; Fri, 02 Feb 2024 23:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706946869; x=1707551669; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=oN0O9Z4j1gKHOYrFlH0kNIbDzOx7ynnAPUzulheBjPo=; b=aXhUlWmU09ZrWqLjzgaJbONSUmXPLACYkurkKLVEPVco2KdOmVmYLgJg36ezrgFDoy 9lg/NqC56jOmZxQOUaQ+DbLplb+7sno3eZXIEariG+tNlJuYUDjATcX8JDVpm2a1GaBL hvnlAIleXArvdR2YPcx+1Er/JN7xz2DLqJQjk7XSUoKHIhyZxN1iSiGmBPrBdY+zta0q K+ttli38GaNUeHYd8wdAnlH1swqin+isSaZ2O6HhE1dSdrhhmlOLdrzV1SgBkN+A+K95 zV/2QdWLJaLf4tFuX815qbNzkK4ZXiqfSoVTghb9oF4D6QTuAxYglXj4Ddq8mGgZAyHa fzqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706946869; x=1707551669; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oN0O9Z4j1gKHOYrFlH0kNIbDzOx7ynnAPUzulheBjPo=; b=GZXW0PVfathOmX9DocOk+AN2s5dnbuRLB+L/uSP5Y2ZTiN2/kiEDXOKuhQN5V8g8ns HHxkYAgkmvN54bfJXNSm2PzO3uKxQOwEekv9QW/CJsfijcZEjKwUFEE/nPBAMuh4bgJQ b3nGy/B7uCZ6bLTkC+Lx2aHOPyJBn9GNrObttPa6GQGJV1UFFfpJQ1zqxxDeblSzDP6I kIXS4f+OGYP48ae+SBTWHbWu08CUIwRVhChaJFOMRci0NVmjZOuM3dCT4KOg8KuwmOeJ Gd8VCI953Tlt0cU2Nh5/5RbyRFXgOgRcj3gRGfnntzvbG3c37YuP35MQDdHPNURJd9wa P82g== X-Gm-Message-State: AOJu0Yz9S6SyA8iDo4oKFYg4i3zd1FaixmRLWuTRaivEtKKeRsefR8F6 dnM0wvz4SbUB7+r+ZwyWuyyGMZqfFdVFsLNG4wAoV2/w1T/NNUDIfml4J5p0D0oc4VOXsBL8VFS 4MqEETTkJrJ7IKHO4P6h5dH3HbLcSqQPlo8lQ X-Google-Smtp-Source: AGHT+IEqHYjiWqRlCqWh0lD6JuKoaHrYrCs/68IQ0u6HPFFwA2KFhDJjYLLfacu8F55wrfF/TvRqBkyDGGUss1ORzOI= X-Received: by 2002:a05:622a:148:b0:42b:ff00:b789 with SMTP id v8-20020a05622a014800b0042bff00b789mr104446qtw.25.1706946869116; Fri, 02 Feb 2024 23:54:29 -0800 (PST) MIME-Version: 1.0 References: <20230814150737.GA1395427@nathanxps13> <20230815153423.GB2296544@nathanxps13> In-Reply-To: From: Hannu Krosing Date: Sat, 3 Feb 2024 08:54:16 +0100 Message-ID: Subject: Re: pgbench - adding pl/pgsql versions of tests To: Robert Haas Cc: Nathan Bossart , Fabien COELHO , pgsql-hackers , Dimitri Fontaine Content-Type: multipart/alternative; boundary="000000000000c91b0b0610758928" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c91b0b0610758928 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable My justification for adding pl/pgsql tests as part of the immediately available tests is that pl/pgsql itself is always enabled, so having a no-effort way to test its performance benefits would be really helpful. We also should have "tps-b-like as SQL function" to round up the "test what's available in server" set. --- Hannu On Fri, Feb 2, 2024 at 9:44=E2=80=AFPM Robert Haas = wrote: > On Tue, Aug 15, 2023 at 11:41=E2=80=AFAM Nathan Bossart > wrote: > > Why's that? I'm not aware of any project policy that prohibits such > > enhancements to pgbench. It might take some effort to gather consensus > on > > a proposal like this, but IMHO that doesn't mean we shouldn't try. If > the > > prevailing wisdom is that we shouldn't add more built-in scripts becaus= e > > there is an existing way to provide custom ones, then it's not clear th= at > > we should proceed with $SUBJECT, anyway. > > I don't think there's a policy against adding more built-in scripts to > pgbench, but I'm skeptical of such efforts because I don't see how to > decide which ones are worthy of inclusion and which are not. Adding > everyone's favorite thing will be too cluttered, and adding nothing > forecloses nothing because people can always provide their own. If we > could establish that certain custom scripts are widely used across > many people, then those might be worth adding. > > I have a vague recollection of someone proposing something similar to > this in the past, possibly Jeff Davis. If there is in fact a paper > trail showing that the same thing has been proposed more than once by > unrelated people, that would be a point in favor of adding that > particular thing. > > -- > Robert Haas > EDB: http://www.enterprisedb.com > --000000000000c91b0b0610758928 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My justification for adding pl/pgsql tests as part of the = immediately available tests is that pl/pgsql itself is always enabled, so h= aving a no-effort way to test its performance benefits would be really help= ful.
We also should have "tps-b-like as SQL function" to round= up the "test what's available in server" set.

--= -
Hannu

On Fri, Feb 2, 2024 at 9:44=E2=80=AFPM Robert Haas <robertmhaas@gmail.com> wrote:
On Tue, Aug 15, 2= 023 at 11:41=E2=80=AFAM Nathan Bossart
<nathandbo= ssart@gmail.com> wrote:
> Why's that?=C2=A0 I'm not aware of any project policy that pro= hibits such
> enhancements to pgbench.=C2=A0 It might take some effort to gather con= sensus on
> a proposal like this, but IMHO that doesn't mean we shouldn't = try.=C2=A0 If the
> prevailing wisdom is that we shouldn't add more built-in scripts b= ecause
> there is an existing way to provide custom ones, then it's not cle= ar that
> we should proceed with $SUBJECT, anyway.

I don't think there's a policy against adding more built-in scripts= to
pgbench, but I'm skeptical of such efforts because I don't see how = to
decide which ones are worthy of inclusion and which are not. Adding
everyone's favorite thing will be too cluttered, and adding nothing
forecloses nothing because people can always provide their own. If we
could establish that certain custom scripts are widely used across
many people, then those might be worth adding.

I have a vague recollection of someone proposing something similar to
this in the past, possibly Jeff Davis. If there is in fact a paper
trail showing that the same thing has been proposed more than once by
unrelated people, that would be a point in favor of adding that
particular thing.

--
Robert Haas
EDB: http://www.enterprisedb.com
--000000000000c91b0b0610758928--