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 1iwXql-0004zu-IT for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 20:52:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwXqk-0007io-8q for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Jan 2020 20:52:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwXqk-0007ih-0F for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 20:52:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwXqh-00008K-QC for pgsql-hackers@lists.postgresql.org; Tue, 28 Jan 2020 20:52:41 +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 00SKqaZs005545; Tue, 28 Jan 2020 15:52:36 -0500 From: Tom Lane To: Stephen Frost cc: Robert Haas , Peter Eisentraut , PostgreSQL Hackers Subject: Re: Removing pg_pltemplate and creating "trustable" extensions In-reply-to: <20200128202918.GJ3195@tamriel.snowman.net> References: <12039.1578602021@sss.pgh.pa.us> <20200110192646.GZ3195@tamriel.snowman.net> <16979.1578685198@sss.pgh.pa.us> <20200110205003.GD3195@tamriel.snowman.net> <27618.1578696790@sss.pgh.pa.us> <20200113184019.GF3195@tamriel.snowman.net> <28604.1578947939@sss.pgh.pa.us> <20200113205756.GL3195@tamriel.snowman.net> <25342.1579628412@sss.pgh.pa.us> <20200128202918.GJ3195@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Tue, 28 Jan 2020 15:29:18 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5543.1580244756.1@sss.pgh.pa.us> Date: Tue, 28 Jan 2020 15:52:36 -0500 Message-ID: <5544.1580244756@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> The minimum committable patch seems like it would just grant the >> "can install trusted extensions" ability to DB owners, full stop. > If you're alright with making it something a DB owner can do, what is > the issue with making it part of the CREATE right on the database? Um, well, people were complaining that it should be a distinct privilege, which I for one wasn't sold on. I continue to think that allowing DB owners to decide this is, if not fundamentally the wrong thing, at least not a feature that anybody has asked for in the past. The feature *I* want in this area is for the superuser to be able to decide who's got install privilege. Making it a DB-level privilege doesn't serve that goal, more the opposite. Still, if we can compromise by making this part of DB "CREATE" privilege for the time being, I'm willing to take that compromise. It's certainly better than failing to get rid of pg_pltemplate. regards, tom lane