Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TecEc-00024R-HM for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2012 01:51:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TecEb-0005bK-K1 for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2012 01:51:13 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TecEZ-0005b9-Qt for pgsql-bugs@postgresql.org; Sat, 01 Dec 2012 01:51:11 +0000 Received: from mail-da0-f46.google.com ([209.85.210.46]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TecEW-0005Si-6h for pgsql-bugs@postgresql.org; Sat, 01 Dec 2012 01:51:10 +0000 Received: by mail-da0-f46.google.com with SMTP id p5so460119dak.19 for ; Fri, 30 Nov 2012 17:51:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding :x-gm-message-state; bh=PxnzbHbKuLBOQEP5UPI22hO2Mu3/gYKCt8CifoRB4yU=; b=Jo9Fluazjbxqh4EYIj0DW0gfkurbuBw2cdu6iJeIhU+HSYAcTDL6FE21eNdalut5ev OcRUbv1YChsdfd/c8k0JlnweoY8OubQ0uPH69AVcHb8eMKlmB7tiE2UsM6ji9vxWP/Em u7k/K4lbeLit0d5ffCjka7lwMgDv2u5i61dXDRznnhpU0+cS0Hl5Qh1fwgUFbKoo6cVo VaXfnpOMdw5MVmKwbdFchdnvdFYlRcKJqWD5ZT3o2x2kqN0ZIX+atq9lQlhZsGbX22ly YYnfdhaI9dqbiXZokUAHDnQ+NKxBVFTUpSzeXQbYfe2PK7SiPhlAiYv31Jk3j17SUBVB 801Q== Received: by 10.66.75.232 with SMTP id f8mr8047495paw.23.1354326666206; Fri, 30 Nov 2012 17:51:06 -0800 (PST) Received: from ?IPv6:::1? ([2600:3c01::f03c:91ff:fe93:2ae4]) by mx.google.com with ESMTPS id xk2sm3903105pbc.45.2012.11.30.17.51.04 (version=SSLv3 cipher=OTHER); Fri, 30 Nov 2012 17:51:05 -0800 (PST) Subject: Re: BUG #7716: Only owner can drop trigger? From: Jeff Davis To: Keith Fiske Cc: pgsql-bugs@postgresql.org In-Reply-To: References: <1354320124.1766.123.camel@sussancws0025> Content-Type: text/plain; charset="ISO-8859-1" Date: Fri, 30 Nov 2012 17:51:02 -0800 Message-ID: <1354326662.1766.127.camel@sussancws0025> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQlx48l0o0RD51cuPWxjDxTlrJJpMs2a+uin864l+aoCOB21ZaSN+SxHr0yM5kuOdaWbR51Y X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, 2012-11-30 at 20:08 -0500, Keith Fiske wrote: > So then don't give that other role trigger permissions if you don't > want them to be able to drop a trigger. I'm actually thankful for the > trigger permission since it allows the extension I'm working on to > create triggers on tables the role doesn't own. But now it only > half-works because it can't clean up after itself when the trigger > needs to be dropped. Allowing any user with TRIGGER privileges to drop a trigger seem like a reasonable change to me. The only alternative I can think of (aside from dropping the separate TRIGGER privilege) is to track the owner of the trigger separately from the owner of the table, but that would be strange, too. Regards, Jeff Davis -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs