Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipceN-0007Mg-0O for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 18:35:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipceL-0006uI-JZ for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Jan 2020 18:35:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipceL-0006u9-78 for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2020 18:35:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ipceE-0001Zg-Np for pgsql-hackers@lists.postgresql.org; Thu, 09 Jan 2020 18:35:16 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 009IZ7Hp006441; Thu, 9 Jan 2020 13:35:07 -0500 From: Tom Lane To: Robert Haas cc: Stephen Frost , Peter Eisentraut , PostgreSQL Hackers Subject: Re: Removing pg_pltemplate and creating "trustable" extensions In-reply-to: References: <20200107181727.GB3195@tamriel.snowman.net> <20200107213618.GC3195@tamriel.snowman.net> <20200108003247.GE3195@tamriel.snowman.net> <20200108230935.GN3195@tamriel.snowman.net> <20200109150911.GP3195@tamriel.snowman.net> <20200109163013.GR3195@tamriel.snowman.net> Comments: In-reply-to Robert Haas message dated "Thu, 09 Jan 2020 12:55:04 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <6439.1578594907.1@sss.pgh.pa.us> Date: Thu, 09 Jan 2020 13:35:07 -0500 Message-ID: <6440.1578594907@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Robert Haas writes: > Again, as I said upthread, Tom had the exact feature about which I am > talking in the first version of the patch. That is a strong argument > in favor of it being practical. It's also a pretty good argument that > it is at least potentially useful, because Tom doesn't usually do > useless things for no reason. To try to clarify that a bit: I think there is certainly some value in allowing superusers to control which extensions could be installed by non-superusers, further restricting what we may think is trustworthy. However, I felt at the time that my GUC-based implementation of that was ugly, and then Peter raised some concrete points against it, so I took it out. I don't want to put it back in the same form. I think we could leave designing a replacement for later, because it's pretty optional, especially if we aren't aggressive about promoting contrib modules to "trusted" status. I don't agree that the lack of such a feature is a reason not to commit what I've got. In any case, AFAICT most of the heat-vs-light in this thread has not been about which extensions are trustworthy, but about which users should be allowed to install extensions, which seems like a totally independent discussion. And controlling that is also a feature that we don't have today, so I'd rather get a minimal feature committed for v13 and then later consider whether we need more functionality. The idea of a DB-level INSTALL privilege addresses the second point not the first, unless I'm totally misunderstanding it. As I said before, I'm not terribly comfortable with handing control of that over to non-superuser DB owners, and I sure don't see why doing so should be a required part of the minimal feature. regards, tom lane