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 1ntxUq-0004xF-Bw for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2022 20:20:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntxUp-0005WH-8F for pgsql-hackers@arkaria.postgresql.org; Wed, 25 May 2022 20:20:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntxUo-0005W0-Ux for pgsql-hackers@lists.postgresql.org; Wed, 25 May 2022 20:20:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntxUi-00031U-Ef for pgsql-hackers@postgresql.org; Wed, 25 May 2022 20:20:41 +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 24PKKYRV2002562; Wed, 25 May 2022 16:20:34 -0400 From: Tom Lane To: Stephen Frost cc: Nathan Bossart , Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: allow building trusted languages without the untrusted versions In-reply-to: <20220525200717.GR9030@tamriel.snowman.net> References: <1333860.1653338790@sss.pgh.pa.us> <1354561.1653345768@sss.pgh.pa.us> <20220524172851.GA1191690@nathanxps13> <20220524205841.GA1254661@nathanxps13> <20220525174940.GQ9030@tamriel.snowman.net> <1978948.1653503311@sss.pgh.pa.us> <20220525200717.GR9030@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Wed, 25 May 2022 16:07:17 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2002560.1653510034.1@sss.pgh.pa.us> Date: Wed, 25 May 2022 16:20:34 -0400 Message-ID: <2002561.1653510034@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Stephen Frost writes: > The very specific "it'd be nice to build PG w/o having untrusted > languages compiled in" is at least reasonably clearly contained and > reasonable to see if we are, in fact, doing what we claim we're doing > with such a switch. I agree that it's specific and easily measured. What I don't get is why it's worth troubling over, if we acknowledge that keeping superusers from breaking out to OS access is infeasible. At most, not having access to plpythonu means you've got to kluge something up involving COPY TO PROGRAM 'python'. If somebody else is excited enough about it to do the legwork, I won't stand in the way particularly. But it strikes me as a waste of effort, not only for the patch author but for everyone who has to read about or maintain the resulting configure options etc. regards, tom lane