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 1ksEor-00084Q-5M for pgsql-docs@arkaria.postgresql.org; Thu, 24 Dec 2020 00:49:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ksEop-0005HC-MC for pgsql-docs@arkaria.postgresql.org; Thu, 24 Dec 2020 00:49:27 +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 1ksEop-0005H5-Ga for pgsql-docs@lists.postgresql.org; Thu, 24 Dec 2020 00:49:27 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ksEol-0000hg-MJ for pgsql-docs@lists.postgresql.org; Thu, 24 Dec 2020 00:49:26 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1ksEok-0003zy-5C; Wed, 23 Dec 2020 19:49:22 -0500 Date: Wed, 23 Dec 2020 19:49:22 -0500 From: Bruce Momjian To: Tom Lane Cc: Steven Pousty , pgsql-docs@lists.postgresql.org Subject: Re: Trusted versus untrusted Pl language Message-ID: <20201224004922.GB13055@momjian.us> References: <160875505390.674.9084620641912624635@wrigleys.postgresql.org> <20201223224140.GA13055@momjian.us> <748034.1608770296@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <748034.1608770296@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Dec 23, 2020 at 07:38:16PM -0500, Tom Lane wrote: > Steven Pousty writes: > > 3. An example of how to make a pre-installed untrusted langue into a > > trusted language > > Under what circumstances would that be a good idea? > > I can't imagine that we'd really want to recommend end users doing > that, but an example would surely be taken as a recommendation > that it's okay to do it. Right. The language has to provide some sandbox environment for us to consider it safe, e.g. Perl, but not Python. PL/pgSQL is safe since it doesn't have any interface to external resources. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee