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 1lLuTw-0001L0-1i for pgsql-general@arkaria.postgresql.org; Mon, 15 Mar 2021 21:10:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lLuTt-00042S-Sa for pgsql-general@arkaria.postgresql.org; Mon, 15 Mar 2021 21:10:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLuTt-00042K-L2 for pgsql-general@lists.postgresql.org; Mon, 15 Mar 2021 21:10:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lLuTr-0001xD-3R for pgsql-general@lists.postgresql.org; Mon, 15 Mar 2021 21:10:28 +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 12FLAObB3076347; Mon, 15 Mar 2021 17:10:24 -0400 From: Tom Lane To: Fred Habash cc: pgsql-general@lists.postgresql.org Subject: Re: Allowing John to Drop Triggers On Chad's Tables In-reply-to: References: Comments: In-reply-to Fred Habash message dated "Mon, 15 Mar 2021 15:20:39 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3076345.1615842624.1@sss.pgh.pa.us> Date: Mon, 15 Mar 2021 17:10:24 -0400 Message-ID: <3076346.1615842624@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Fred Habash writes: > Based on my research, There are the options I have identified to allow user > 'John' to drop a trigger on a table owner by 'Chad' .. I guess the big-picture question is why do you think you need that? The separate TRIGGER permission is something we consider obsolescent. It's difficult to make use of it in any way that isn't tantamount to giving John the ability to execute arbitrary code as Chad (the next time Chad does anything with his table). So while a case could be made that granting TRIGGER should include the right to alter or drop existing triggers, it's unlikely that anyone will want to expend effort in that direction. regards, tom lane