Re: Allowing John to Drop Triggers On Chad's Tables

2021-03-16 Thread Fred Habash
Thank you all for taking the time to respond. As always, great community support. On Mon, Mar 15, 2021 at 5:10 PM Tom Lane wrote: > 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' .. >

Re: Allowing John to Drop Triggers On Chad's Tables

2021-03-15 Thread Tom Lane
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'

Re: Allowing John to Drop Triggers On Chad's Tables

2021-03-15 Thread David G. Johnston
On Mon, Mar 15, 2021 at 12:20 PM Fred Habash wrote: > If there is a 'grant trigger' why is there not a 'grant drop trigger'? > > Because creating a trigger from scratch doesn't let you affect other triggers that you may not own (at least not directly). If drop permissions were grantable the user

Allowing John to Drop Triggers On Chad's Tables

2021-03-15 Thread Fred Habash
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' .. 1. Make John a superuser 2. grant chad to john ; 3. Have Chad create a wrapper definer-rights procedure to drop triggers & grant execute to John. 4. Give John Chad's p