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 1mIY9u-0007s8-6g for pgsql-general@arkaria.postgresql.org; Tue, 24 Aug 2021 15:16:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mIY9r-0002ws-Gc for pgsql-general@arkaria.postgresql.org; Tue, 24 Aug 2021 15:16:11 +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 1mIY9r-0002tW-7B for pgsql-general@lists.postgresql.org; Tue, 24 Aug 2021 15:16:11 +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 1mIY9k-00018v-2A for pgsql-general@lists.postgresql.org; Tue, 24 Aug 2021 15:16:10 +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 17OFFxHn344417; Tue, 24 Aug 2021 11:15:59 -0400 From: Tom Lane To: "David G. Johnston" cc: Li EF Zhang , "pgsql-generallists.postgresql.org" Subject: Re: Make bloom extension trusted, but can not drop with normal user In-reply-to: References: <1851342.1629465971@sss.pgh.pa.us> Comments: In-reply-to "David G. Johnston" message dated "Tue, 24 Aug 2021 07:40:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <344415.1629818159.1@sss.pgh.pa.us> Date: Tue, 24 Aug 2021 11:15:59 -0400 Message-ID: <344416.1629818159@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Fri, Aug 20, 2021 at 6:26 AM Tom Lane wrote: >> "Li EF Zhang" writes: >>> Since pg13 support trusted extension, so I changed control file of bloom >>> and make it trusted. >> The fact that you can edit the file that way doesn't make it a supported >> case. > Why does that matter here though? This isn't a question about a security > violation, it's one about the basic premise that a trusted extension is > owned by the creating user and thus can be dropped by them. My point was that randomly marking stuff as trusted is likely to cause large problems, therefore we don't support doing it. Per the other followup, this does work as-expected in v14. I doubt we'd take the risk of moving superuserness checks around in v13 to make it work there. regards, tom lane