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 1qX3Mh-0050jZ-ER for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Aug 2023 17:34:27 +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 1qX3Md-00D0wq-RU for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Aug 2023 17:34:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qX3Md-00D0wi-FP for pgsql-hackers@lists.postgresql.org; Fri, 18 Aug 2023 17:34:23 +0000 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qX3MW-000qSB-Ky for pgsql-hackers@postgresql.org; Fri, 18 Aug 2023 17:34:22 +0000 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-40c72caec5cso22101cf.0 for ; Fri, 18 Aug 2023 10:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1692380056; x=1692984856; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=pAvcf3TUPJB1RHNGlvSrW0FjpE9WqnqFt0ylzGoDeT8=; b=7LnTaLyTF1FfEld1Jd011tceuS3Z6+ZrMQVBbaRgpJCHGp50HERjgV4gvgCrvlGoOD AToXy7KolaQHFwS5vX4b0rKIYLxV7tZWgYAseNfyfyDjHxPy3UIO2QIUUihUGLrWQzBC 6yU9yrc1I++eo+JF4PKsudDG08bcxd1RbuIG8noXQj/X/tMto+nmykXNpxhVjNQcQK94 d5Y1tTLu1mlljbWPS4GdROFqyxJHMdl12AyrkRNVUpGSMdUXsIZgg9G9uJKXnClcVs6T uDoPnLEbpbBSx7biHDNW6nkvQOam+ey2Y+OIWF7zDAdJDfrhpK0zRcDxP1r70dsoU/Tg CjIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692380056; x=1692984856; h=content-transfer-encoding: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=pAvcf3TUPJB1RHNGlvSrW0FjpE9WqnqFt0ylzGoDeT8=; b=SykH/46OkTiWUNpDTlFF+YyfWaKL3pjB9xs+eNC7NhzxkAErjUcjUQY2jQy7QOrTGS qlvaqsDGJjEedLCtWinyNdmFRCTY6X2ycELrzF1QQy3xVD+LC08VnCPhUQCspqZnSoTi hyfXtXwd4V/4hcKgxuMX+RSMZ8ckNh9O0rWSh70E07ZfdvRyrR36v62e8y7YXKxYP14y SDbbQyhmC5Z+48sSXlfjR6aQBVZOhMj+NaHTQQKcQCuHjLdoeZKEouGm6LxXjkA3BlxZ Ce4xVdfCtrgidpTUfMe2E1sHm08NObeL73d/2XNV+Y1W7rFeDoaq4vkHvMFlhq0aBvC/ IXuw== X-Gm-Message-State: AOJu0YxoaMASPdhL+DNsZmMq/pd6zXrBQq8sHgfYoQx9H4OLum8vnbHD KpvJSg2NuAqvk0/dPzoseZfaqCrJQP2Co0Us4x7aBw== X-Google-Smtp-Source: AGHT+IGNw3+jKBz8/gV6BCIlJjrKFtiqk03oc2AaOUtnwsrtAaeB2iJXnE0mI4gS7cJzOOlyIOeCRxat7W37mWPufjs= X-Received: by 2002:a05:622a:109:b0:40e:332b:ba30 with SMTP id u9-20020a05622a010900b0040e332bba30mr250160qtw.23.1692380055770; Fri, 18 Aug 2023 10:34:15 -0700 (PDT) MIME-Version: 1.0 References: <20230814150737.GA1395427@nathanxps13> <20230815153423.GB2296544@nathanxps13> <52432287-b496-abd3-edc-4beddbc051f0@mines-paristech.fr> In-Reply-To: <52432287-b496-abd3-edc-4beddbc051f0@mines-paristech.fr> From: Hannu Krosing Date: Fri, 18 Aug 2023 19:34:03 +0200 Message-ID: Subject: Re: pgbench - adding pl/pgsql versions of tests To: Fabien COELHO Cc: Nathan Bossart , pgsql-hackers , Dimitri Fontaine Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I will address the comments here over this coming weekend. I think that in addition to current "tpc-b like" test we could also have more modern "tpc-c like" and "tpc-h like" tests And why not any other "* -like" from the rest of TPC-*, YCSP, sysbench, ...= :) though maybe not as part of pg_bench but as extensions ? --- Hannu On Wed, Aug 16, 2023 at 10:06=E2=80=AFAM Fabien COELHO wrote: > > > Hello Nathan, > > >> I'm unclear about what variety of scripts that could be provided given= the > >> tables made available with pgbench. ISTM that other scenari would invo= lve > >> both an initialization and associated scripts, and any proposal would = be > >> bared because it would open the door to anything. > > > > Why's that? > > Just a wild guess based on 19 years of occasional contributions to pg and > pgbench in particular:-) > > > I'm not aware of any project policy that prohibits such enhancements to > > pgbench. > > Attempts in extending pgbench often fall under "you can do it outside (eg > with a custom script) so there is no need to put that in pgbench as it > would add to the maintenance burden with a weak benefit proven by the fac= t > that it is not there already". > > > It might take some effort to gather consensus on a proposal like this, > > but IMHO that doesn't mean we shouldn't try. > > Done it in the past. Probably will do it again in the future:-) > > > If the prevailing wisdom is that we shouldn't add more built-in scripts > > because there is an existing way to provide custom ones, then it's not > > clear that we should proceed with $SUBJECT, anyway. > > I'm afraid there is that argument. I do not think that this policy is goo= d > wrt $SUBJECT, ISTM that having an easy way to test something with a > PL/pgSQL function would help promote the language by advertising/showing > the potential performance benefit (or not, depending). Just one function > would be enough for that. > > -- > Fabien.