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 1qWBXw-002NyJ-Ck for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Aug 2023 08:06:28 +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 1qWBXu-004e7a-VG for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Aug 2023 08:06:27 +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 1qWBXu-004e7S-LR for pgsql-hackers@lists.postgresql.org; Wed, 16 Aug 2023 08:06:26 +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) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qWBXp-000PQO-10 for pgsql-hackers@postgresql.org; Wed, 16 Aug 2023 08:06:25 +0000 Received: from genua (113x39x105x210.ap113.ftth.ucom.ne.jp [113.39.105.210]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 5CDDDC00D4; Wed, 16 Aug 2023 10:10:58 +0200 (CEST) Date: Wed, 16 Aug 2023 10:06:09 +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: <20230815153423.GB2296544@nathanxps13> Message-ID: <52432287-b496-abd3-edc-4beddbc051f0@mines-paristech.fr> References: <20230814150737.GA1395427@nathanxps13> <20230815153423.GB2296544@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, >> 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. > > 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 fact 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 good 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.