pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Fred Habash <fmhabash@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Allowing John to Drop Triggers On Chad's Tables
Date: Mon, 15 Mar 2021 17:10:24 -0400
Message-ID: <3076346.1615842624@sss.pgh.pa.us> (raw)
In-Reply-To: <CADpeV5yquqARC4e1uT_UKoRVMYQYD2Ay9yZg+E2N=hfM984rJw@mail.gmail.com>
References: <CADpeV5yquqARC4e1uT_UKoRVMYQYD2Ay9yZg+E2N=hfM984rJw@mail.gmail.com>

Fred Habash <fmhabash@gmail.com> 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





view thread (4+ messages)  latest in thread

Message-ID: <3076346.1615842624@sss.pgh.pa.us>
Permalink:  ../3076346.1615842624@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3076346.1615842624@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, fmhabash@gmail.com
  Subject: Re: Allowing John to Drop Triggers On Chad's Tables
  In-Reply-To: <3076346.1615842624@sss.pgh.pa.us>
  References: <CADpeV5yquqARC4e1uT_UKoRVMYQYD2Ay9yZg+E2N=hfM984rJw@mail.gmail.com> <3076346.1615842624@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox