Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBiMf-00061v-5T for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2022 19:49:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oBiMd-00077E-Iy for pgsql-hackers@arkaria.postgresql.org; Wed, 13 Jul 2022 19:49:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBiMd-000775-9p for pgsql-hackers@lists.postgresql.org; Wed, 13 Jul 2022 19:49:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBiMb-0001fw-6F for pgsql-hackers@postgresql.org; Wed, 13 Jul 2022 19:49:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26DJnY9n2476508; Wed, 13 Jul 2022 15:49:34 -0400 From: Tom Lane To: Nathan Bossart cc: Peter Eisentraut , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: allow building trusted languages without the untrusted versions In-reply-to: <20220713185350.GA3118442@nathanxps13> References: <1290329.1653326228@sss.pgh.pa.us> <1333860.1653338790@sss.pgh.pa.us> <1354561.1653345768@sss.pgh.pa.us> <20220524172851.GA1191690@nathanxps13> <20220524205841.GA1254661@nathanxps13> <849661f1-85a3-2833-5477-059a9b58e70f@enterprisedb.com> <20220713185350.GA3118442@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Wed, 13 Jul 2022 11:53:50 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2476506.1657741774.1@sss.pgh.pa.us> Date: Wed, 13 Jul 2022 15:49:34 -0400 Message-ID: <2476507.1657741774@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > Given the discussion in this thread, I intend to mark the commitfest entry > as Withdrawn shortly. Before I do, I thought I'd first check whether 0001 > [0] might be worthwhile independent of $SUBJECT. This change separates the > [un]trusted handler and validator functions for PL/Perl so that we no > longer need to inspect pg_language to determine whether to use the trusted > or untrusted code path. I was surprised to learn that you can end up with > PL/PerlU even if you've specified the trusted handler/validator functions. > Besides bringing things more in line with how PL/Tcl does things, this > change simplifies function lookup in plperl_proc_hash. I suppose such a > change might introduce a compatibility break for users who are depending on > this behavior, but I don't know if that's worth worrying about. Meh. Avoiding the potential repeat hashtable lookup is worth something, but I'm not sure I buy that this is a semantic improvement. ISTM that lanpltrusted *should* be the ultimate source of truth on this point. My feelings about it are not terribly strong either way, though. regards, tom lane